Self-Hosted WordPress Permalink Problems – .htaccess exits

The first thing one should check is if the file .htaccess exists in the root directory of the site (/var/www/html in my case). The root directory of your site should contain a file index.php, in the same folder there should be the file .htaccess. WordPress uses this file to manipulate how Apache serves files from its root directory, and subdirectories thereof. Most notably, WP modifies this file to be able to handle pretty permalinks.

For a basic WordPress Site .htaccess should look like this

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

If this file is present you should check that the right user owns and has the proper permissions to write the file. See here.

 

Checklist

  1. .htaccess must be present in the same folder as index.php
  2. .htaccess be writeable
  3. apache2.conf must allow overwrite
  4. database problems
Advertisements
This entry was posted in Computing and Others. Bookmark the permalink.

2 Responses to Self-Hosted WordPress Permalink Problems – .htaccess exits

  1. Pingback: Self-Hosted WordPress Permalink Problems | Economic Theory Blog

  2. Pingback: Self-Hosted WordPress Permalink Problems – .htaccess permissions | Economic Theory Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s