Urls get appended with a hypen and number at the end like -2 (4 posts)

  1. pramod.mohanan@hotmail.co.uk
    Posted 5 years ago #

    While adding a new page with a title '2011' the permalink for it gets generated with a hyphen and a number like '2001-2'.

    I have tried deleting all previous entries(drafts/trash etc) which didnt help. Also I have noticed the same behaviour with any number being added as page title for example a title of '999999' would generate a link like '999999-2'

    And just to rule out any possibilities, I have also cleared all the custom rules in .htaccess and have just kept the core rule as follows
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    Its an important and urgent project for us and we need to go live with the url like http://domain.com/parent/2011

    Please advice how we can get over this issue.

  2. kjup
    Posted 5 years ago #

    Did you ever come up with a resolution to this one? I too am having the same issue and the only way it seems to work is by adding a letter in front of the numbers or after the numbers. It seems that when it's just numbers in the permalink it's forcing the hypen in after the numbers you add in.

  3. fonglh
    Posted 5 years ago #

    it's because the link is already taken by the automatically generated date based archives.

  4. kjup
    Posted 5 years ago #

    Thanks, I have discovered a plugin to get around this as I never use the paging feature if you wish to get around this issue. http://wordpress.org/extend/plugins/allow-numeric-stubs/

Topic Closed

This topic has been closed to new replies.

About this Topic