After migrating my wordpress sites from my old hosting provider to my new vps thought my sites works fine but it was giving 404 not found everywhere
it’s a redirection issue because the home page is working fine

my rewrite mod is activated , the htaccess is the default wordpress one ,
for migrating the site i proceed like this

1) i copy the old files in the right vhost folder
2) i create a mysql username and database for the new server
3) i update the wp-config.php file with the new params.
4) i import the old database to the new empty database

i copied this from wordpress official documentation and it worked fine for other sites but now it’s not working,

tried to google the issue but i havn’t got the solution

this is my .htaccess file ( the standard wordpress htaccess)

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
AddHandler x-mapp-php5.5  .php
# BEGIN WordPress
# END WordPre

Read more here: wordpress redirection gives 404 after moving site from a server to another


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: