Get a free trial // Grow your CSS skills // Land your dream job

Limit WordPress URL length

  • # November 29, 2011 at 11:58 am

    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:

    The new URL generated by WordPress looks like this:

    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!

    # November 30, 2011 at 4:44 pm

    Anyone have any ideas?

    # November 30, 2011 at 5:44 pm

    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.

    # December 1, 2011 at 10:46 am

    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!

    # May 20, 2013 at 10:51 am

    Did you ever find a way of doing this? I’ve just run into the same problem. Cheers!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed