: PHP won't load certain pages and images, Godaddy 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
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): aandbinteriors.com/contactus.php/ – and here is a preview of the page on Media Temple that shows how it ought to look 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?
More posts by @Pierce454
2 Comments
Sorted by latest first Latest Oldest Best
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?
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.