apache - .htaccess redirection failure for certain paths -
i have come accross particularly vexing problem .htaccess file. using standard redirection running requests through index.php so:
<ifmodule mod_rewrite.c> rewriteengine on rewritebase / #make direct requests /index.php go example.com/ instead rewritecond %{the_request} ^.*/index.php rewriterule ^(.*)index.php$ /$1 [r=301,l] #redirect index.php url parsing , routing rewriterule ^(.*)$ index.php?url=$1 [l,qsa] </ifmodule>
is there reason url such as:
www.example.com/error/view/404
would bypass redirection , default apache "access denied" or "object not exist" errors? there sort of fix or path apache doesn't allow reason?
Comments
Post a Comment