Forums

Hyphen at the end of URL (2 posts)

  1. perfectlyclear
    Member
    Posted 2 years ago #

    Hi hopefully someone can help me with this simple one.

    I am migrating a blog with tens of thousands of pages into wordpress while trying to maintain the permalink structure. I have 50 or so urls that have a hyphen at the end i.e. http://www.url.com/pagename-.html. The problem is wordpress automatically strips out this hyphen and only allows the post to be called http://www.url.com/pagename.html. I have tried adding ­ at the end as well as editing the database directly but none seem to work. Can anyone suggest a modification that will allow me to get this hyphen to stay?

    I am aware that I can sort the issues by using 301 redirect but I want to avoid this as the .htaccess is already quite hefty.

    Thank you very much for any help given.

  2. perfectlyclear
    Member
    Posted 2 years ago #

    Anyone? This will save me having around 400 301 redirects so it would be a massive help if anyone could let me know if this can be done.

Topic Closed

This topic has been closed to new replies.

About this Topic