php - Apache mod_rewrite ignore some real directories -
that's root directory:
css img js includes templates api
and that's .htaccess
rewriteengine on rewritebase / rewritecond %{script_filename} !-f rewritecond %{script_filename} !-d rewriterule ^(.*)$ /index.php?ur=$1 [l,qsa]
it works fine when inform url directory exists, apache open directory, when in fact should inform uri ur parameter.
for example: mydomain.com/test-uri/ goes ur parameter. mydomain.com/api/ apache loads api directory.
i did research, got consider directories when need pass api directory parameter.
remove -d
check:
rewriteengine on rewritebase / rewritecond %{script_filename} !-f rewriterule ^(.*)$ /index.php?ur=$1 [l,qsa]
Comments
Post a Comment