• Hi all,

    We’re having a bit of trouble organising the url structure on one of our wordpress sites.

    We’re not really concerned with putting many keywords in the url for seo purposes but we’d definitely need the post name in there.

    Our real focus is on providing a URL structure that won’t change.

    The site basically provides guides and opinion pieces (already you may think that WordPress is not the best CMS).

    We’d like to follow a url structure like most of the big boys use e.g. ehow which uses: domain.com/guide-name-guide-id/

    What would be good is to have: domain.com/how-to/post-name-post-id/

    Where ‘how-to’ is simply a static label.

    However we’re aware that starting the permalink with anything but a number causes performance issues (and we are about to publish 1,000+ content pieces).

    Why not use the date?
    well just like any good guide it is updated over time. unfortunately the problem with using a permalink structure like /%year%/%month%/ (or whatever) is that not only will our content appear dated but if we change the publish date the URL will change.

    Why not use pages?
    A workaround would be to use pages instead of posts. The problem there however is that we’d lose the ability to organise content dynamically i.e. lose the ability to categorise pages and give them tags.

    We could use parent pages and child pages but this would again affect the URL and it would drop new content out of the dynamic type category pages that posts have.

    What’s the solution?
    So we’re keen to know what the community recommends for this dilemma. What would you do / what do you do? Dare I say that WordPress is not the right CMS for us?

    Is it even possible to use a permalink structure like domain.com/how-to/%post-name%-%post-id%/ ?

    Is it possible to change the permalink structure for pages?

    Kind Regards,

    Dave

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter davede

    (@davede)

    Thanks for posting those resources esmi.

    I’m a little confused on the number vs text string issue.

    Would a permalink structure like /%post-id%-%post-name%/ resulting in domain.com/post-id-post-name/ still cause a performance issue?

    Does the post id being first and being a number help at all?

    How about changing the permalink structure for pages?

    Does the post id being first and being a number help at all?

    Yes it does. all you have to ensure is that your custom structure begins with a numeric. /%year%/ is favourite simply because it results in a more meaningful url for human users.

    How about changing the permalink structure for pages?

    Page permalinks in the form /page_name/ are automatically generated when you set up your custom permalink structure for Posts. You cannot edit the structure for Pages.

    Thread Starter davede

    (@davede)

    Hi esmi,

    Thanks for the quick reply. Your help is very, very, much appreciated.

    In regards to %year%

    Why not use the date?
    well just like any good guide it is updated over time. unfortunately the problem with using a permalink structure like /%year%/%month%/ (or whatever) is that not only will our content appear dated but if we change the publish date the URL will change.

    So we are really hesitant to use the date for one of the reasons you stated:

    it results in a more meaningful url for human users

    We don’t want the date to be meaningful ??

    I’m not a database guru (or any sort of tech guru by any means ;)) however I’m guessing that the database uses the full text within the slash characters to categorise content.

    i.e. using /%year%-%post-name%/ won’t help us because WP will read the full text between the slashes and hence treat it as a text string and not numeric.

    do you know if that is correct? is it even possible to have a permalink structure like /%year%-%post-name%/ that has two variables within slashes?

    We don’t want the date to be meaningful

    I have no problem using /%year%/%monthnum%/%postname%/ personally. I use it on one of may largest blogs and still get excellent ranking on Google.

    I’m guessing that the database uses the full text within the slash characters to categorise content.

    I think you may be over-simplifying the permalink system. It’s very complex and, I’d agree, not perfect. There have been mutterings about an overhaul but it hasn’t happened yet.

    I’d agree that /%year%-%post-name%/ wouldn’t be a good choice of permalink. That looks too like a standard Page permalink – which is exactly what we are trying to avoid.

    Thread Starter davede

    (@davede)

    Thanks again esmi, you’ve been a massive help – wish there was some sort of rep system on WP forums so i could increase your rep.

    I don’t have any doubt that pages could rank just as well in Google when the date is in the url. Our focus is however on the user/visitor. Our content is not news related.

    I think what we’re coming back to is the core issue that WordPress is probably not the right platform for the site. The URL limitations and performance issues really highlight what WP is and what it is designed to do: manage sites with time-based content.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    We don’t want the date to be meaningful ??

    What do you want to be meaningful?

    Honestly, you can use /%postname%/ if you have a good server with decent caching and it’s well designed. Generally I suggest using dates for increasing your HEO (Human Experience Optimization), because Humans like dates ?? They like knowing ‘when’ something happened. It’s just how we are. You don’t have to be news related to use a date in your URL.

    domain.com/how-to/post-name-post-id/ is a fine structure and WP can do that (look at wpcandy.com and how they cleverly named things). You could use Custom Post Types for /how-to/ posts and save your ‘blog posts’ for if, later down the line, you realize ‘Hey, I do need a way to post news here!’

    Thread Starter davede

    (@davede)

    Hi Ipstenu,

    Thanks for that advice and example.

    I should have clarified a little more on the date topic. I 100% agree that showing the date to the user is of utmost importance. I absolutely hate reading guides that display no date and then later finding out all the info is out of date ??

    We would certainly display a ‘last updated date’.

    Our concern is really with the URL. After a few mistakes in the past we are really shooting for URLs that do not change with time (see Cool URIs don’t change).

    I may have been confused on the implications of using /%year%/%monthnum%/%post-name%/. When you change the publish date of the post does the URL update also?

    I wasn’t aware of custom post types that is a fantastic tip, thank you very much.

    I took a look at wpcandy.com (great site btw) am I right in saying they use /%category%/%postname%/ ?

    When you change the publish date of the post does the URL update also?

    Yes it does. I rarely (if ever) change the publication date of a post after it’s been published – which is why this doesn’t really impact on my date-based urls.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    I never change the publication date of a post, and if I have a revision to the post that’s big enough, I’ll post a NEW post and edit the old one to link to the new one “This was revisited in ‘Mushroom hunting for fun and profit’.”

    But you’re right, good urls NEVER change. That said, accepting the fact that sometimes bad things happen to good URLs, it’s good to have a URL structure that, if you don’t like it down the line, it can be changed seamlessly via .htaccess.

    Using %postname% makes it near impossible to redirect the URL. Using /how-to/%postname% is very easy to change. Using YYYY/<whatever>/postname is also good. It’s easy to parse that to something new.

    Just something to keep in mind ??

    Thread Starter davede

    (@davede)

    Hi all,

    Thanks for the fantastic replies.

    After focusing a bit on our other sites we’ve come back to this issue and examined custom post types and taxonomies.

    Creating a new taxonomy seemed the simplest way to go in order to keep posts functioning as posts and allow us to implement our how-to into the permalink with the option of adding ‘news’ or ‘comment’ pieces later on (thanks for the long-term view tip Ipstenu).

    Anyway I say “seemed” – but getting the taxonomy children slugs into the permalink is a lot harder than I thought it would be. I just can’t seem to get it working.

    I started a new thread on it here. Any help you could give would be very much appreciated.

    Thanks,

    Dave

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Permalink Structure: Performance and Content Managament’ is closed to new replies.