Report this

What is the reason for this report?

Permalink not working after move to digital ocean of my wordpress site

Posted on September 20, 2016

hello friends…

Recently I moved my wordpress site to Digital Ocean, I setup-ed SSL in my site. Now the problem here was. My wordpress site permalink was not working. I charged the url structure on wordpress. But nothing changed.

Please help me out to get out from this problem.



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.

You should have correct .htaccess in location of WordPress’s index.php file. This is in place where you installed WordPress, usually /var/www/html.

Open .htaccess file in your favourite text editor:

  1. nano /var/www/html/.htaccess

Make sure it have following:

/var/www/html/.htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Optional: Just in case to be sure it will use latest changes restart Apache with:

  1. sudo systemctl restart apache

Thanks to all your effort to answer my question. The problem was with my domain. The step is different for SSL Enabled domain. I got answer from Enable mod_rewrite in apache2 SSL Enabled Domain

Thanks again

In case anyone came looking for an answer to “Ubuntu 16.04 One-click Wordpress install” permalinks not working, the solution for me was to enable mod_rewrite using:

sudo a2enmod rewrite
sudo service apache2 restart

Hope this helps

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.