Page 1 of 1
automatic redirects
Posted: Mon Aug 04, 2008 4:58 pm
by HiddenS3crets
I'm using Godaddy to host my site and I noticed that it automatically will redirect URLs like so:
Code: Select all
http://site.com/file -> http://site.com/file.php
Basically, if you don't put the file extension in the URL and the file exists on the server in the same directory, it will automatically point you to that file. Any idea on what kind of setting this is and whether or not it can be overridden?
Re: automatic redirects
Posted: Mon Aug 04, 2008 8:59 pm
by it2051229
I think that has something to do with the application that hosts your site.. and I am sure it is not PHP, it has something to do with the configuration of APACHE if that's what godaddy uses to hosts your files.
Re: automatic redirects
Posted: Mon Aug 04, 2008 9:02 pm
by HiddenS3crets
yea, I figure it's some sort of mod_rewrite rule. I'm just wondering if there's any code that could disable/override it
Re: automatic redirects
Posted: Mon Aug 04, 2008 9:24 pm
by HiddenS3crets
I figured it out thanks to this post:
http://www.btjones.com/2007/12/09/godad ... oblem-fix/
Turns out godaddy uses MultiViews which enables functionality that I described in the original post. Thanks!