treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Limit WordPress URL length

  • Hey all,

    I'm working on a rebuild of a site and trying to keep the new URL's the same as the old ones. The old ones just use the post name but they appear to be limited to a certain number of characters, for example:
    www.example.com/news/boston-meets-with-life-sciences-economic-development-organization-from-

    The new URL generated by WordPress looks like this:
    www.example.com/news/boston-meets-with-life-sciences-economic-development-organization-from-europe/

    I know I can edit the permalink manually via the post editor, but as there are a lot of posts involved then I'm wondering if there's a way to limit the URL (to 100 characters for example) automatically?

    Any nudge in the right direction would be much appreciated!

    Thanks in advance!
  • Anyone have any ideas?
  • I did a quick search for you the other day but didn't find anything so I didn't bother replying. I'm sure it can be done, but I think it might involve so rather tricky coding.
  • Thanks Doc, appreciate it. I'm assuming it will have to be done with the .htaccess file, I'll keep on Googling and let you know if I find a solution. Thanks again!