JonnoTheDev Posted July 16, 2009 Share Posted July 16, 2009 Our server has been pre-configured to request files if the filename extension has not been supplied i.e. abc.com/test.php abc.com/test How can I stop this as it is causing issues with mod_rewrites i.e. if I rewrite a url: abc.com/test/1/3456 The server ignores the rewrite and just requests test.php. Only if I change the string 'test' within the rule to one that does not match the filename will the rewrite work. Quote Link to comment https://forums.phpfreaks.com/topic/166188-solved-files-requested-without-extensions/ Share on other sites More sharing options...
trq Posted July 16, 2009 Share Posted July 16, 2009 I would suggest that this feature has been implemented with mod_rewrite. Have yo got access to the httpd.conf file? I'd see if you can find the rule that implements this feature and remove it. Quote Link to comment https://forums.phpfreaks.com/topic/166188-solved-files-requested-without-extensions/#findComment-876457 Share on other sites More sharing options...
JonnoTheDev Posted July 16, 2009 Author Share Posted July 16, 2009 This is the only thing in the httpd.conf file that has a reference to rewrite LoadModule rewrite_module modules/mod_rewrite.so Quote Link to comment https://forums.phpfreaks.com/topic/166188-solved-files-requested-without-extensions/#findComment-876469 Share on other sites More sharing options...
JonnoTheDev Posted July 16, 2009 Author Share Posted July 16, 2009 Found the problem. It's multiviews Options MultiViews -Indexes SymLinksIfOwnerMatch IncludesNoExec Applied to all directories under the apache document root Quote Link to comment https://forums.phpfreaks.com/topic/166188-solved-files-requested-without-extensions/#findComment-876478 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.