homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

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)

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?




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

Sounds like mod_negotiation is being invoked. Try turning off MultiViews

Options -MultiViews


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

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)

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)

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved