Question

Why Wordpress doesn't change the permalinks on my blog?

Posted December 14, 2015 2.1k views
UbuntuMySQLApachePHPServer OptimizationWordPressLAMP StackDigitalOceanConfiguration ManagementLinux Commands

Hi,
I’ve got a Linux Ubuntu 12.04.05 LTS droplet with LAMP stack installed where I’ve got hosted my blog, which runs through Wordpress. I have migrated the blog from another hosting months ago, and since then I’ve trying to change the permalinks from the default mode that comes with the Wordpress installation with no successful result.
I want to change this to the post name mode (/%postname%/), but when I change it every link on my blog returns a 404 error.
I’ve tried changing the permissions of the .htaccess file to 666, I changed the code of .htaccess to the default code, I tried deleting the .htaccess and letting Wordpress generate a new one, but nothing works.
Sometimes when I’m going to edit the .htaccess file it just appears with the # BEGIN WordPress and # END WordPress comments, with no code inside the file.
I would be very grateful if someone could help me with this since I don’t know what more I can do to fix this.

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.

×
1 answer

Hey,

As long as the standard Wordpress .htaccess file is there and readable, the only reason I can imagine that would cause these symptoms is not having Mod_Rewrite active. You can try sudo a2enmod rewrite to enable it.

Happy coding,

Jon Schwenn
Platform Support Specialist
DigitalOcean

Submit an Answer