0

I realize that Godaddy isn't the ideal hosting choice, but I'm running a site on an account with them.

One of the pages on the site, /contactus.php refuses to load. Instead of loading the page, it loads my home page – even though the url displays /contactus.php.

This issue only began to occur when I moved the site from Media Temple to Godaddy (don't ask – it's a weird string of events that led me to do that).

When I run the site on MAMP, /contactus.php loads correctly.

Here is the page on Godaddy (it incorrectly loads the home page): http://aandbinteriors.com/contactus.php/ – and here is a preview of the page on Media Temple that shows how it ought to look http://neilrenicker.com.s140277.gridserver.com/contactus.php/ The fact that it seems to load OK everywhere else makes me think it's an issue at Godaddy, but I'm not sure what!

Any clues, anyone?

3
  • Is it possible that some of your redirect rules got screwed up in the migration? Mar 6, 2012 at 16:51
  • It's not a problem with the contactus.php page, it's the trailing slash. If you take off the slash it works. Mar 6, 2012 at 17:31
  • Thanks for both solving my problem and simultaneously making me feel like an idiot, Paul! Much appreciated, and I'm glad it was a simple fix. I updated the menu link to append the trailing slash, and we're all set.
    – tinystride
    Mar 6, 2012 at 17:56

2 Answers 2

1

It is the trailing slash that is triggering the issue. Your server is handling non-existent directories by sending them to the home page. You should be getting a 'Page doesn't exist error' instead.

If you are on a linux account, you may want to check you .htaccess settings.

Otherwise I would look into your link structure. Why do you have the trailing slash after your script name?

1
  • This was a site design by someone else, I was just moving the hosting – so I'm not sure why he had a trailing slash in the link structure. I edited that, and we're all set. Thank you SuperMykEl, and many thanks to Paul Morris for originally suggesting that fix.
    – tinystride
    Mar 6, 2012 at 18:50
1

Check to make sure your cases match between the URL and the file itself. contactUs.php is not the same as contactus.php. I've never used MAMP but it's possible that it doesn't care about case; I know that XAMPP under Windows treated URL's as case-insensitive, which caused me some problems when moving to GoDaddy's Linux hosting.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.