I just moved a site i've been creating on my localhost online after some inital bumps in road a got the links to go to domain.com/page instead of localhost/page now when I go to the page domain.com/page I get a 500 error I got the phone with the hosting company who had no idea what was going on and had them delete the .htacess file b/c I for some reason couldn't see it when I ftp to the site After I had them delete it i now get a 404 not found error when try to follow link such as domain.com/page and thats where I am at Please help, any suggestions are helpful
It sounds like you had something broken in your htaccess file. However, it must be there if you are using url re-writing. So to solve your problem create an .htaccess file with the following. # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Code (markup):
I just tried that, it was very weird; I created the .htaccess which saved as .htaccess.txt and when I FTP'd to the site and uploaded it, the .htacess file showed up in the folder for about one second before disappearing?..? Could this be how the server is set up?
Hidden files (.htaccess) could be blocked by your servers ftp protocol, this normally indicates something is broken. What ftp program are you using? If you are using filezilla click on Server (in the top bar) and check Force show hidden files.