Report this

What is the reason for this report?

Can't get permanent links in wordpress to work - 404 error

Posted on March 4, 2013

Just transferred my wordpress blog to the new server ubuntu 10.4 with the LEMP setup. But I can’t get my permanent links to work, getting 404 error.

Already tried the following and nothing seems to work

  1. Enabled apache2 for mod_Rewrite
  2. Regenerate the .htaccess file in WordPress by going to Settings -> Permalinks -> and clicking to “Save Changes”

Database was setup correctly. Able to login to admin and saw all my pages got transferred



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Pastebin your .htaccess file. And you say you “enabled apache2 for mod_rewrite”. Did you restart apache? <br>

Hi Jason, <br> <br>I just figured it out and it is now working. The problem was due to Apache2 AllowOverride Not Enabled. I had to change that to ALL Enabled. <br> <br>Thanks for the response. Very much appreciated.

Why is there apache on a LEMP install image?

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.