WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Change page URL to category URL (7 posts)

  1. primHel
    Member
    Posted 1 year ago #

    Dear all,
    is there a way to change the page url / permalink to a category url?

    Say I have created a page named "example" and the permalink will then be http://www.myblog/example.
    I have a category named cat, with the permalink: http://www.myblog/category/cat
    I want my "example" page to have the permalink: http://www.myblog/category/cat

    I've tried using custom fields, but I don't know if that's the right solution, and it's not working. Anybody got an idea on how to do this?

  2. Phil
    Member
    Posted 1 year ago #

    The only way to achieve this (whether it works or not) would be to create a page called Category and another page called Cat. You would place Cat underneath the Category page (so Category is the parent). This would in theory give you category/cat as a url - whether it conflicts with the actuall /category ie the archive of posts is another thing to consider. Worth giving it a go though.

    There will be other ways to achieve this as well such as rewriting the url via htaccess.

  3. primHel
    Member
    Posted 1 year ago #

    Thank you, Phil.
    Your first suggestion didn't work (category and cat page), so I guess I have to do the htcaccess thing. Do you know if there is some sort of tutorial to do this? If not, thanks anyway, now I know what to look for.

  4. Phil
    Member
    Posted 1 year ago #

    Here's a good place to start.

  5. primHel
    Member
    Posted 1 year ago #

    Thanks, you're a champ.

  6. primHel
    Member
    Posted 1 year ago #

    In case anybody wants to do the same thing, it was very easily done using the Redirection plugin (link).

  7. Phil
    Member
    Posted 1 year ago #

    You cheated! ;)

Topic Closed

This topic has been closed to new replies.

About this Topic