We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum


Thread tagged as: Question, Configuration, Blog

Blog Slugs

Morning all!

I'm in the process of porting my site over from Textpattern to Perch. So far, it's been relatively easy but I've come across a strange issue.

Rather than going through the pain & hassle of setting up 300 odd redirects from old URLs to new ones, I thought I'd set up the blog structure to mimic my old Textpattern site and so far, it appears as if it'll do it!

My existing url structure is mrqwest.co.uk/blog/{postID}/{postTitle}.

However, in my settings page, I'm using /blog/{postID}/{postSlug} and my Slug Format is {postTitle}. This works fine however, my post URLs now have a data prepended to them... so as an example, I'm getting the following URL blog/239/2014-02-04-12-devs-of-winter when it should be blog/239/12-devs-of-winter.

How can I adjust my Slug to achieve my desired url structure?

Anthony Killeen

Anthony Killeen 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Did you change the slug format before or after importing the posts?

Ahhh, I think it was after I imported. I wasn't sure of the slug prior to importing.

Is there anyway of reverting or rewriting or would I be best to delete all posts and re-import with the new settings?

Drew McLellan

Drew McLellan 2638 points
Perch Support

I would just empty the table and run the import again. The slugs are generated when a post is edited, not when it's displayed.