WordPress.org

Support

Support » How-To and Troubleshooting » Permalinks Issue

Permalinks Issue

  • The problem:

    pages that have a page called ‘Label’ as parent will give a 404 when using permalinks.

    So ‘http://www.domain.com/label/djs/’ will give an 404-error.

    I want to use the permalink settings: http://domain.com/2014/04/03/sample-post/

    The pages are there and I can edit them in the admin-panel, but just seem to be unable to view them in the front-end.

    With the default permalink-settings all is fine.

    I guess the problem is that i’m using the word ‘label’, but since i’m running a site for a label, I really need to use this in the url structure.

    Anybody have a solution?

Viewing 10 replies - 1 through 10 (of 10 total)
  • Saravanan
    Member

    @simplysaru

    If you want to use http://domain.com/2014/04/03/sample-post/ then where is the word label in your URL?

    That’s for post my friend.
    Are you trying to find errors in my explanation or constructively adding to a solution?

    So the PAGE called Label will have the url: http://domain.com/label/, which works, but all sub-pages of that page called ‘Label’ don’t seem to be working.

    For example:
    http://domain.com/label/artist/ will give a 404 as well as http://domain.com/label/releases etc.

    bump…

    J M
    Participant

    @hiphopinenglish

    Where did you set these permalink bases? If you did it via code when adding a CPT for example, you MUST visit Settings > Permalinks in order to flush the permalinks cache, or you will likely see these 404 errors.

    If this is not the case for you, are you sure you have set some Pages to be Child Pages of /label/? If you haven’t, this will be why you’re seeing 404s.

    Nope, didn’t add CPT(?) or anything.
    I don’t have any coding-skills

    Just try it yourself, it won’t break your site or anything:

    With the permalink settings on http://domain.com/2014/04/03/sample-post/
    – create a page called ‘label’ (no parent)
    – create a page called ‘test’ (with as parent: ‘label’)
    – now view the page ‘test’ at http://domain.com/label/test/ Result >>> 404-error

    🙂

    It all has to do probably with the fact I’m calling the parent-page ‘label’ and that that word would be ‘reserved’ for the system/software or something I guess.

    Anyone?

    I think it has something to do with this:
    Reserved Terms, though ‘label’ isn’t in the list.

    I do see the word ‘label(s)’ appear in the examples above the list on the page, but it’s not clear to me if this relates to my issue or not.

    Anyone?

    J M
    Participant

    @hiphopinenglish

    The fact that it was giving you a 404 error and that label is often a key word in WP’s structure seems to indicate you shouldn’t be using it.

    Please run a basic test just to make doubly sure that something else isn’t wrong, and use a different slug (e.g. reclabel) for the page and child pages. Check that that definitely works as you expect in terms of permalinks, and then we can conclude that “label” is not going to work for you.

    J M
    Participant

    @hiphopinenglish

    Please disregard my last post. I found a test site I had lying around. I created a Page with /label/ and a second with /dj/ as a child of /label/. Everything worked fine, no 404s, so something else must be the issue.

    @hiphopinenglish: thnx for replying.

    Well, what you said in your 2nd last post I did.
    I did rename the page into reclabel and then everything seems to be fine, no 404’s: all good.

    Could it be the term was reserved for the theme maybe?

    Mmmhhh…..?

    I’ll get back on this…

    J M
    Participant

    @hiphopinenglish

    Does the term/slug/keyword “label” exist elsewhere on your site? Is “label” a custom post type for example? This would explain its unwillingness to be used as a permalink base.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Permalinks Issue’ is closed to new replies.