• I’m setting up site which will mainly contain pages. There will be a set of pages for each year so I wanted the URLs to be similar to

    example.com/subsite/2011/page 1
    example.com/subsite/2011/page 2

    (subsite – it’s a multisite)

    The problem is that when I create the page “2011”, which will act as parent, I can’t get the slug to be “2011” instead I get “2011-2”. I assume this has something to do with permalinks. I looked around but I couldn’t find any info on how to work around this.

    Is it possible to have a page slug like “2011”? If so, how?

Viewing 3 replies - 1 through 3 (of 3 total)
  • You have to set the “2011” page as the parent so that every page that is to be a subpage of 2011 will have “2011” in the URL. In other words, each subpage when created has to have the “2011” page selected as the parent in the dropdown in the “Page Attribute” section.

    Now, if the “2011” page doesn’t have a slug of “2011” and you are trying to get it changed to “2011” without much success then check your trash as there might be a page with that slug. If that’s not the case, you will have to check the database to make sure there are no pages with that slug.

    Thread Starter skromta

    (@skromta)

    It’s a completely new site so there are no old pages. However, I used to have an another sub site with the name “example.com/subsite/”, I changed the URL of that site to “example.com/subsiteold” and created this new one with original URL “example.com/subsite/”.

    I assumed that they wouldn’t conflict each other? In the old site there is page called “2011” (now “example.com/subsiteold/2011”) but I’ve assumed that they no connection to each other. On the other hand, the old site has no “2013” but I still get the slug “2013-2” on the new one.

    Stupid question but how do I check the database?

    There can be conflicts between subsites especially on shared hosting. You would need to go to the control panel on your hosting account and use phpMyAdmin to access the dataabase. That is all I can tell you because I don’t know what kind of server you are using or the type of control panel you are using as there are so many kinds! So you’ll have to contact your hosting provider to get a quicker answer on this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I use numeric page slug?’ is closed to new replies.