By MUHSIN PC
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!
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:
- nano /var/www/html/.htaccess
Make sure it have following:
# 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:
- 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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.