.htaccess - Apache: Missing folders rewritten to php-files -
i have site url http://localhost/my-site/. file called test.php exists on root, folder named test not exist.
when open link http://localhost/my-site/test/, file test.php opened. should not give 404 error instead? have no .htaccess file doing funny business. rewriting seems done before .htaccess file being run, rewrite rule of test/ not match anything. rewrite rule of test.php match.
i using wampserver 2.2 apache 2.4.2.
this sounds mod_negotiation/multiviews issue.
in appropriate place (say, in vhost config, or in htaccess file in my-site's directory, include in options - multiviews:
options -multiviews
Comments
Post a Comment