Viewing 4 replies - 1 through 4 (of 4 total)
  • Enter:
    /%postname%/
    in the custom structure on the permalinks settings.

    Hi,

    Refer this article:

    http://codex.wordpress.org/Using_Permalinks#Choosing_your_permalink_structure

    Set your desired permalink from wordpress admin area and then add this code in htaccess:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Thanks,

    Shane G.

    Thread Starter onepiecefan

    (@onepiecefan)

    Shane G, I have added the code in my htaccess file and this is how it looks:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # BEGIN WordPress

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

    # END WordPress

    Is that right?

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Custom permalink’ is closed to new replies.