How to fix wordpress permalinks not working 404
When wordpress ruining on local server like as ubuntu 16.04. Then I get some error message such as “The requested URL was not found on this server.” I think it’s permalinks problem. But I change wordpress permalinks for got Settings / Permalinks and then select sample post. But I can’t fix this error message from wordpress on local server.
Configure permalinks on your local server for wordpress.
Step #01: Goto /etc/apache2/sites-available/ and see defaults file like as 000-default.conf file. Now you can create new file like as wp.conf and open any editor.
[email protected]:~# vi /etc/apache2/sites-available/wp.conf
Insert below all lines into wp.conf file.
<Directory /var/www/html/> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
Step #02: Now restart your web server details below:
[email protected]:~# a2ensite wp.conf [email protected]:~# service apache2 reload [email protected]:~# a2enmod rewrite [email protected]:~# systemctl restart apache2
Now enjoy your WordPress server on your local or public machine.
Thanks to all.
Latest posts by Admin (see all)
- How To Install OsTicket v1.14 On Centos 7 With Apache - January 17, 2020
- How To Install Bitwarden Password Manager On Ubuntu 18.04 Using Docker - December 13, 2019
- How To Convert Ubuntu 19.04 Server To MikroTik Router Using Script - December 1, 2019