Recently I had to move one of my blogs to another hosting account. I moved all files and then did upload a mysql backup. Blog was working but if you click on a post or category you get a 404 error. I haven't changed anything. Permalink Settings is /%post_id%/%category%/%postname%.php whats the reason for this ? http://www.hardcoverbooks.info/
Ensure that the .htaccess file is present in the root folder. I think the problem could be due to the mod-rewrite /.htaccess issues. I think you will need the following code in the .htaccess file: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Hiya Can you please show us what the .htaccess file contains ? Have you recently added any plugins (after moving your site from the old host) ? Also what are the ownership permissions for the .htacess file ? Kind Regards, mrhrk01
Here's what .htaccess has, # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress No I haven't add any plugins or anything. I have just moved to another host. Another thing, When I change Permalink Settings back to default it everything work. This happen with custom permalink. /%post_id%/%category%/%postname%.html
Yeah That's the problem since its a new VPS. That make it worse since I'm new to VPS handling. I don't know if this can be done in Hyper VM or Kloxo ..
Nop. But thanks finally I got it fixed. Problem was at VPS, mod_rewrite was not enable. Ben Thomas from btcentral.org.uk helped me to get it fix. I have to thank him for saving me from this nightmare.