Report this

What is the reason for this report?

WordPress Permalinks Broken

Posted on April 9, 2013

I followed the guide on installing Wordpress on Ubuntu 12. Everything is working fine, except for when I change my permalink structure to Month/Post Name. The main blog page works, but post links throw a 404 error.

I tried a few things:

  • Enabled mod_rewrite with a2enmod rewrite and restarted Apache
  • Set permissions to .htaccess to 777 so Wordpress could update the file as needed when I updated the Permalink settings.

Is there something else I’m missing here to get this working?



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.

I had to define site_url in wp-config. It fixed the issue. Thanks

Thanks @laudes.michael the solution helped

Im having an odd issue with this, that on google I find was relevant, and the fixes work, from wordpress 2.5 (im on 4.3)

Permalinks work, if I make the structure “/index.php/%postname%” Anything else… doesnt work. Any ideas ??? :)

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.