marvanog
By:
marvanog

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

December 14, 2015 1k views
WordPress DigitalOcean LAMP Stack PHP MySQL Apache Configuration Management Server Optimization Linux Commands Ubuntu

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.

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

Have another answer? Share your knowledge.