After server migration only the homepage works

After server migration only the homepage works

On Ubuntu server, if after server migration only home page works; you can follow below troubleshooting to fix the issue:

In /etc/apache2/apache2.conf, edit AllowOverride None for /var/www/ to AllowOverride All

Type in the following command to enable mod_rewrite for .htaccess

Restart your apache server:

The problem will be solved!!!

If you have access to the wp-admin then:

Try flushing your mod_rewrite rules by going to:
Dashboard -> Settings -> Permalinks
Save settings (no need to make any changes)

Share this post

Comment (1)

  • Daniel Reply

    Very good!
    Thx, I had this problem on my web https://japanpanda.com/

    Go guy! Thx again!
    Daniel Díaz

    December 27, 2016 at 4:43 pm

Leave a comment

Your email address will not be published.