Thursday, January 27, 2011

Wordpress "The requested document was not found on this server"

The error message "The requested document was not found on this server" was happening after I moved a Wordpress blog to another directory. I followed all the correct steps here but the error was still coming.

So it turns out, my .htaccess file was missing all along. To fix this:

You need to create a file called ".htaccess" (yes including the . at the start) and copy it, via ftp or whatever you use, it in the root folder of your Wordpress blog on your server.

Inside that file, enter the following and upload it. That should do the trick:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

No comments:

Post a Comment