0

How to fix 404 Error on WordPress?

Asked 4 years ago (Apr 10, 2021) in the field of Content management systems by Eldernode Staff

Hi. I moved the WordPress site from one server to another. After that, I can only view the main page. All the menus and links display the 404 Not Found error if opened. What is the problem plz?


Answers


0
Answered 4 years ago (Apr 11, 2021) by Eldernode Staff

You can fix this by modifying the AllowOverride option in the Apache configuration file. AllowOverride is equal to none by default, and if you change it to All, your problem will be solved.

Using a text editor, open the /etc/httpd/conf/httpd.conf file and find AllowOverride in the settings section of your site, and set it to “All“:

<VirtualHost *:80>  ServerName example.com  DocumentRoot /var/www/html/example.com  <Directory "/var/www/html/example.com">  AllowOverride All  </Directory>  </VirtualHost>

We are by your side every step of the way

Think about developing your online business; We will protect it compassionately

We are by your side every step of the way

+8595670151

7 days a week, 24 hours a day