[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: .htaccess Rewrite
sharomet
Мне нужно из url файла убрать расширение (.php)
Я работаю пот denwer-ом создал там папку test(home\localhost\www\test), в ней 3 файла index.php, img.php, ну и .htaccess

в index.php просто ссылка на img.php, а в img.php ссылка на index.php

<!DOCTYPE HTML>
<html>
<head>
<meta
http-equiv="content-type" content="text/html" />
</head>
<body>
<a
href="index.php">Перейти по ссылке</a>
</body>
</html>


в файле .htaccess я пишу

RewriteEngine On
RewriteRule ^(.*)$ $1.php [L]


затем набираю в url http://localhost/test/

и он выводит мне ошибку

Internal Server Error

Цитата
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


везде в нете показано именно такая схема но у меня она почему то не работает

подскажите почему?

_____________
Место клизмы изменить нельзя!
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2025 Invision Power Services, Inc.