DEV Community

Suprim Golay
Suprim Golay

Posted on

How to Fix : Migrating WordPress 404 Error

sudo nano /etc/apache2/apache2.conf
Enter fullscreen mode Exit fullscreen mode

Scroll down until you find Directory /var/www/>.
Change AllowOverride None to AllowOverride All. Save the file and quit (Ctrl + X and and Y).

Enable mod_rewrite for .htaccess

sudo a2enmod rewrite
Enter fullscreen mode Exit fullscreen mode

Restart the server

sudo systemctl restart apache2
Enter fullscreen mode Exit fullscreen mode

This is what worked for me and hope it'll work for you too.

Discussion (0)