WordPress permalinks and .htaccess file issue

I’m using the WordPress .htaccess file as follows

# 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

This is not working for my permalink /%postname%

Read More

What might be the problem?

Related posts

Leave a Reply

2 comments

  1. 1.- Be sure that your set permalinks in Permalink Settings http:// your_domain/wp-admin/options-permalink.php

    enter image description here

    2.- If you are using WP inside a subdir you must modify htaccess:

    RewriteBase /subdir/
    

    UPDATE:

    3.- enable rewrite module. In ubuntu is easy:

    sudo a2enmod rewrite
    

    4.- Allow .htaccess in server’s config

    <Directory /your_wp_dir>
    AllowOverride All
    </Directory> 
    

    5.- After any change in server’s config restart it (again in ubuntu is):

    $ sudo service apache2 restart