Report this

What is the reason for this report?

Wordpress Links only allow Plain permalinks

Posted on November 14, 2018

When I try to change my permalink settings from Plain to any of the other options, all pages but the homepage then say that the page is not found. I have already tried deleting the .htaccess file so that it re-generates.



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.
0

Accepted Answer

Hello,

What you would need to check is the following.

  • Make sure that Apache mod_rewrite is enabled, you can check that with this command:
apachectl -M | grep -i rewrite
  • If you don’t see the module, you can enable it with this command:
sudo a2enmod rewrite

Restart apache after running this command

  • Make sure that AllowOverride is enabled for your htaccess file. In your Apache Vhost for the site in question (should be something like this: sudo nano /etc/apache2/sites-available/mysite.conf) make sure that you have the following somewjere after the ServerName line:
    <Directory /var/www/mysite>
        AllowOverride All
    </Directory>

Hope that this helps! Regards, Bobby

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.