Powered By Blogger

Sunday, June 15, 2014

Local wordpress install only shows home page, all other pages Not Found in linux os

Log in to the admin panel (localhost/sitedirectory/wp-admin) and go to Settings->Permalinks and click Save Changes. Permalinks often need to be rebuilt after mirroring a site and updating the site url. You don't need to change any settings, just hit save and it will rebuild the permalinks with the selected options.


Also make sure the Apache module mod_rewrite is enabled on your local stack. IIRC WAMP (and possible XAMPP) do not enable this by default. Doing so in WAMP is as simple as clicking the WAMP icon in the taskbar, then going to Apache -> Apache Modules -> mod_rewrite (click to toggle) and then restart all services.

Apache module mod_rewrite is enabled on your local stack in ubuntu :

To enable it the rewrite module, run "apache2 enable module rewrite":
sudo a2enmod rewrite

You need to restart the webserver to apply the changes:
sudo service apache2 restart

No comments:

Post a Comment