Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress : URL error 404 but the page exists

I moved my wordpress (3.0) blog to my dedicaced server.

Just one thing is broken :

if i set the url in worpress to be

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

The page is correctly shown

If i set the URL to be :

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

it ends up with a 404 not found page !!

Here's 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

like image 834
sf_tristanb Avatar asked Feb 27 '23 16:02

sf_tristanb


2 Answers

Wordpress uses .htaccess to do its redirections, have you tried changing the AllowOverride None directive to AllowOverride All ?

like image 190
David Pratte Avatar answered Mar 03 '23 16:03

David Pratte


It sounds like your new server isn't set up to rewrite your URLs to pretty links. You basically want to follow the guidelines on this setup page:

http://codex.wordpress.org/Using_Permalinks

like image 35
Oren Avatar answered Mar 03 '23 16:03

Oren