automatic redirects

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
HiddenS3crets
Forum Contributor
Posts: 119
Joined: Fri Apr 22, 2005 12:23 pm
Location: USA

automatic redirects

Post 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?
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: automatic redirects

Post 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.
HiddenS3crets
Forum Contributor
Posts: 119
Joined: Fri Apr 22, 2005 12:23 pm
Location: USA

Re: automatic redirects

Post 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
HiddenS3crets
Forum Contributor
Posts: 119
Joined: Fri Apr 22, 2005 12:23 pm
Location: USA

Re: automatic redirects

Post 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!
Post Reply