Welcome to WebmasterWorld Guest from 54.162.239.134

Forum Moderators: phranque

Message Too Old, No Replies

Folders and files within redirect to files with the same name

Is this specific to me or all GoDaddy accounts, or even beyond?

     
10:53 am on Feb 29, 2008 (gmt 0)

5+ Year Member



I realize my question may be related to my specific hosting company (GoDaddy). I have contacted their customer service and am waiting a response. However, since they are such a popular hosting company, I wanted to bring the issue to webmaster world to see if other people had the same problem, and if someone already knows a solution.

I found out recently that if you have a file, for example, a file in the root, such as /test.php, then all requests, such as /test/does-not-exist/ and /test/not-there/file.rss all open up that test.php file.

This came up as it was causing some headaches with a script I was trying to write.

My .htaccess file is empty so it is not caused by a rewrite rule I created.

Does this happen with anyone else on GoDaddy, or even not on GoDaddy? Specifically for this one project, I'm hosted on a shared Linux server. I tested it out on another GoDaddy hosted account, and it happened there too.

Any ideas how I can stop this, so only /test.php will open /test.php?

Thanks

3:59 pm on Feb 29, 2008 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Sounds like mod_negotiation is being invoked. Try turning off MultiViews

Options -MultiViews

12:22 am on Mar 1, 2008 (gmt 0)

5+ Year Member



I'm not familiar with mod_negotiations.

Would I add this line to my htaccess file?

7:33 pm on Mar 2, 2008 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member



I'm not entirely certain it is Apache mod_negotiation [httpd.apache.org] but from what you describe it certainly sounds like it may be your issue. Yes, the directive shown can be set in a per-directory override file (.htaccess)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month