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
sudo a2enmod rewrite
Restart your apache server:
sudo service apache2 restart
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)
No comments:
Post a Comment