WordPress.org

Support

Support » How-To and Troubleshooting » Custom permalink structure adds double URL

Custom permalink structure adds double URL

  • Compugraphic
    Member

    @compugraphic

    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.

Viewing 1 replies (of 1 total)
  • Shane G.
    Member

    @shane-g-1

    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.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom permalink structure adds double URL’ is closed to new replies.