Ok so,for those of you like me, who like to tinker with the server, and blindly delete and rename, and overwrite  files, you may have encountered this problem. Well here is what you can do if you delete or write over .htaccess.

  1. Create a new text file.
  2. copy and paste this into the file:# BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
  3. This code needs to be in the .htaccess file, this allows all permalinks to be written, whether you’ve changed the permalinks or not. This code allows wordpress to write to the .htaccess files which controlls the premalinks.

It’s as simple as that. just make sure the code is in the .htaccess file and you will be a happy camper. So happy blogging to all and to all a happy blog.

Technorati Tags: , , , ,