WordPress.org

Forums

Custom permalink structure adds double URL (2 posts)

  1. Compugraphic
    Member
    Posted 5 years ago #

    Since I have upgraded from 2.8.6 to 2.9 (using the admin panel) my custom permalinks converted to a double URL.

    Switching back to the default permalink setting fixes the problem.

    However, when I tried to remake the custom structure, here's what happens:

    I enter
    http://mydomain.com/category/post-name/
    but when I save changes, the entry moves the slashes around to look like this
    /http:/mydomain.com/category/post-name/
    which seems to be creating the double URL problem.

  2. Shane G.
    Member
    Posted 5 years ago #

    Hi,

    Refer this article to set custom permalink:

    http://codex.wordpress.org/Using_Permalinks

    Also 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.

Topic Closed

This topic has been closed to new replies.

About this Topic