Answers for "page not found error in wordpress"

1

wordpress inner page not found error

NOTE : If you got this error after installing wordpress on a newly configured 
ubuntu server
----------------------------------
1. sudo a2enmod rewrite

2. Add AllowOverride All in virtual host
<Directory /var/www/html>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
</Directory>

3. restart apache
Posted by: Guest on October-06-2020
0

404 error for all pages except home page wordpress

Follow the following steps to solve this issue:

1. Open the the Apache virtual file for your domain to make changes:
	sudo nano /etc/apache2/sites-available/mysite.conf

2. Make these additions on the file

  <VirtualHost *:80>
      ServerAdmin webmaster@localhost
      DocumentRoot /var/www/mysite
      ServerName server_domain_name_or_IP
      <Directory /var/www/mysite>
          AllowOverride All
      </Directory>
      . . .
      
3. Save and exit then enable mode rewrite which allows you to modify URLs:
	sudo a2enmod rewrite
    
4. Reload Apache
	sudo service apache2 reload

https://www.digitalocean.com/community/questions/why-aren-t-my-wordpress-permalinks-working
Posted by: Guest on March-31-2021

Browse Popular Code Answers by Language