I was messing around a few days ago with my www.goldfishgaming.com HostGator account, trying to add domains to the account. I got a domain added and running, but today I just noticed something. I went to check my blog, and the homepage is working fine, but everything else is gone. It's not that important because I pretty much gave up on the site anyways, but does anyone know why this happened? (Reps if you help me)
you'd probably be better off asking hostgator tech support, they may be able to look at the technical logs to see what happened. if that turns up nothing, you could try making sure your .htaccess file is properly set.
I talked to the Host Gator tech, he told my that I had no content folders (I checked and he was right) but he couldn't tell me how it happened.
if you're running Wordpress, it's likely that something happened with your .htaccess file or your permalinks are not set properly.
I am running WordPress, but I think my .htaccess file is correct. This is what it looks like - Options +Indexes Options +FollowSymLinks RewriteCond %{HTTP_HOST} ^goldfishgaming\.com RewriteRule ^(.*)$ http://www.goldfishgaming.com/$1 [R=permanent,L] RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !(.*)/$ RewriteRule ^(.*)$ http://www.goldfishgaming.com/$1/ [L,R=301] # BEGIN WordPress <IfModule mod_rewrite.c> RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Code (markup): I have also tried making new posts, and it says that it has been posted, and it shows up on the homepage. But when I click the link to it, I get the 404 error still.
I switched my permalink structure to default instead of /%postname%/ and everything worked. Then I switched back to /%postname%/ and everything still worked, with the correct post URLs.(Thank you fsmedia) So it's working now, but how did this happen? I don't want it to happen to other people's sites that I work on.
there's just a hickup sometimes and it's best to make sure the permalinks are updated and you can write to the .htaccess file glad it's working now
Sometimes, after your host has experienced an interruption, your pretty-permalinks are reset. It's happened to me a few times, as well. Ususlly if you just save the permalink structure again everything returns to functioning properly.