406 шибка при ЧПУ без mod_rewrite в IE

Столкнулся с ошибкой 406 в IE.  В других браузерах все нормально.

Виной тому была строка в файле .htaccess


DefaultLanguage ru-RU

Mod_Rewrite +RewriteCond 500 Internal Server Error

Решил делать ЧПУ ссылки с помощью PHP.

Прописал в файл, заготовленный кем-то следующий код в .htaccess

1
2
RewriteCond %{REQUEST_FILENAME} !-f #Комментарий
RewriteCond %{REQUEST_FILENAME} !-d #Комментарий

Но, Apache ругался 500 ошибкой:

Internal Server Error

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

Please contact the server administrator, admin@testdomain.com 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/2.2.8 (Win32) PHP/5.2.6 Server at test.dd Port 80

Удалив комментарии после условий для mod_rewrite, Apache смело начал обрабатывать правила. Должно быть так:

1
2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

Данное условие проверяет наличии файлов и директории на существование, если найдены — использует найденный файл, в противном случае — выполняет следующие правила.