Wordpress: URL 404 error, but the page exists

I moved the wordpress (3.0) blog to my dedicated server.

Only one thing is broken:

if i set the url as

http://wwww.example.com/page?id=3 

Page displays correctly

If I gave the url:

 http://wwww.example.com/about/ http://www.example.com/services/ 

it ends with page 404 not found!

Here is my virtual host if it helps:

 <VirtualHost *:80> ServerAdmin webmaster@localhost ServerName www.example.fr DocumentRoot /var/www/example <Directory /var/www/example> Options -Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access-example.log combined ErrorLog /var/log/apache2/error-example.log ServerSignature Off </VirtualHost> 

Thanks you

+4
source share
3 answers

Wordpress uses .htaccess to reassign it. Have you tried changing the AllowOverride None to the AllowOverride All directive?

+8
source

It looks like your new server is not configured to rewrite your URLs to nice links. Basically you want to follow the recommendations on this settings page:

http://codex.wordpress.org/Using_Permalinks

+1
source

I found that one thing to watch for is quite apart from properly configured .htaccess, HTTPD-vhosts.conf, etc. - This is to verify that mod_rewrite is enabled on the http.conf server. Just make sure this line is uncommented:

LoadModule rewrite_module lib / httpd / modules / mod_rewrite.so

0
source

Source: https://habr.com/ru/post/1315464/


All Articles