Hyphen at the end of URL
-
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. https://www.url.com/pagename-.html. The problem is wordpress automatically strips out this hyphen and only allows the post to be called https://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.
- The topic ‘Hyphen at the end of URL’ is closed to new replies.