[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: 500 Internal Server Error mod_rewrite
binary
Сообщение в браузере:
Цитата
500 Internal Server Error

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

Please contact the server administrator, support@хостер 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.

Apache Server at имя сайта Port 80

Запись в логе сервера:
Цитата
[Tue Jun 21 10:48:08 2011] [error] [client мой айпишник] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

Содержимое файла .htaccess
Цитата

Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.домен
RewriteRule (.*) http://домен/$1 [R=301,L]

RewriteRule ([\w-]+)/([\w-]+)/$ /index.php?type=static&parent=$1&child=$2 [L]
RewriteRule ([\w-]+)/([\w-]+)$ /index.php?type=static&parent=$1&child=$2 [L]

RewriteRule ([\w-]+)/$ /index.php?type=static&child=$1 [L]
RewriteRule ([\w-]+)$ /index.php?type=static&child=$1 [L]

php_flag magic_quotes_gpc Off

AddDefaultCharset utf-8

Ошибку, насколько я понимаю зацикливание вызывает строчка RewriteRule ([\w-]+)$ /index.php?type=static&child=$1 [L] .
Подскажите плиз, как исправить.



Спустя 4 часа, 59 минут, 19 секунд (21.06.2011 - 16:40) Mirexzpalich написал(а):
В конфиге расскоментируй строчку, где подключается mod_rewrite

Спустя 39 минут, 38 секунд (21.06.2011 - 17:19) alex12060 написал(а):

RewriteRule ([\w-]+)/$ /index.php?type=static&child=$1 [L]
RewriteRule ([\w-]+)$ /index.php?type=static&child=$1 [L]



А почему их тут 2?
Оо
Они разве выполняют разный функционал? Оо

Спустя 1 час, 49 минут, 48 секунд (21.06.2011 - 19:09) binary написал(а):
Те две строчки можно заменить на
RewriteRule ([\w-]+)/([\w-]+)/?$ /index.php?type=static&parent=$1&child=$2 [L]
RewriteRule ([\w-]+)/?$ /index.php?type=static&child=$2 [L]

но результат такой же.
Проблема в правиле, которое действует без /

Спустя 2 минуты, 50 секунд (21.06.2011 - 19:12) binary написал(а):
Цитата (Mirexzpalich @ 21.06.2011 - 13:40)
В конфиге расскоментируй строчку, где подключается mod_rewrite

Не совсем понял?
mod_rewrite - точно включен, и нормально работает, без вредного правила:
RewriteRule ([\w-]+)$ /index.php?type=static&child=$1 [L]

кстати если оставить его только одно, то тоже такая же ошибка.
Быстрый ответ:

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