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. 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. 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 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 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
Archived
This topic is now archived and is closed to further replies.