wordpress migrate

Wordpress Migration

After server migration only the homepage works. Every single link gave a Not Found.

Solution
1.Settings > Permalinks, Change to plain

  1. .htaccess file

    # BEGIN WordPress
     <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteBase /
     RewriteRule ^index\.php$ - [L]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule . /index.php [L]
     </IfModule>
     # END WordPress 
    
  2. http.conf edit the AllowOveride so that it is changed from None to All.

     <Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    </Directory>