I get similar effects. Directives in .htaccess that work for one application do not work with a neghbouring application on the same server. Sometimes I get 'Bad request', sometimes 'Server Error', sometimes the contents of the .htaccess file itself do not produce an error, but the directives it contains are still not executed so that I get a 'Page not found' error because the RewriteRule has not been applied. The behaviour even changes when I add or remove comments or change things totally unrelated to what seems to have caused an error. There seems to exist something like an Apache configuration lottery. You often lose, and sometimes you even win.
zamolxes ecmeins wrote: > > I am using the same .htaccess file with rewrite rules on different servers > and getting different results. Both servers are using php 5.2.x. > > On one, I get a Bad Request error 400 when not using a trailing foward > slash. Add the slash and things work. On the other server it works > correctly with or without the trailing slash. > > Here is the .htaccess contents. > > RewriteEngine on > RewriteRule .* index.php > php_flag magic_quotes_gpc off > php_flag register_globals off > > Any ideas? > > Thanks in advance for your help, > > Eric > -- View this message in context: http://www.nabble.com/rewrite-and-Bad-Request-400-without-trailing-slash-tf4207255s16154.html#a11991533 Sent from the Zend Framework mailing list archive at Nabble.com.
