• I use wordpress as a CMS.

    I have created some categories for specific use and a category “blog” for blog post.

    My permalink is like that : /%category%/%postname%/ and it must be like that to working well with my specific categories, so I can’t change the permalink.

    So for my blog part, all url are like that https://www.mywebsite.com/blog/subcategory/postname

    And I would like to have this : https://www.mywebsite.com/postname just for blog category for a better SEO

    Is it possible to tweak a different permalink for a specific category ? How I can do this ?

    Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • I don’t think that you can use different pretty permalinks for different sections.

    You might be able to write something in your .htaccess file that would trim out those subcategories. But I’m not sure exactly how this is going to help you with SEO. I think it would hurt you, those sub-categories should be keyword rich additions to your URLs that should help you, not hurt you.

    Yoast has some of the best info about boosting SEO for WordPress.

    Thread Starter binbin

    (@binbin)

    The principal advantage will be to have some permalinks independent from the categories…

    This plugin might be helpful. I think that this plugin will do what you want, but it is no longer being developed.

    And you might be able to use this plugin to redirect https://www.mywebsite.com/blog/subcategory/postname to https://www.mywebsite.com/postname or clean up any loose ends…

    Thread Starter binbin

    (@binbin)

    I appreciate your help jleuze, unfortunately this plugins doesn’t work with my permalink like that : /%category%/%postname%/

    hey all,

    Im dealing with an indirect kinda problem. I dont want to remove , but add specific part to the permalink. I’ve posted it yesterday, but it has already been pushed 2 the bottom with no replies:(.

    link is: https://www.ads-software.com/support/topic/231688?replies=1

    My basic problem is how to insert a certain part into the permalink of category/single-post pages, depending on a location in the website.
    (The webiste splitted apart in 2 sections right after the homepage, so the permalinks I would like to show up has to look like:
    https://www.mywebsite.com/section1/subcategory/postname and
    https://www.mywebsite.com/section2/subcategory/postname.

    Thanks

    Hi,

    Does anyone have a solid answer for this question?

    Just to clarify, I want most posts to appear like this:
    https://mywebsite.com/blog/2009/07/01/the-blog-post

    …but for a specific category (say, ‘projects’):
    https://mywebsite.com/projects/the-blog-post

    I’ve been looking at the above comments, plus https://codex.www.ads-software.com/Function_Reference/WP_Rewrite but I don’t understand how I’d use it in an actual website.

    Any ideas?

    Many many thanks in advance,
    Andrew

    I’m in the same boat as andrewfox. Up until now, I’ve been just making pages for things that required a different permalink, but it’s clumsy and requires a lot of customization to get the templates to treat the pages as though they are posts with a category… anyway, it’s a long story.

    It would be much much more efficient if I could have specific categories that had a different permalink structure from the bulk of the other posts.

    I also went and read over the function reference for WP_Rewrite, and while it seems like it should do the trick, I don’t think I’m fluent enough at this point to implement it.

    Any help or advice would be appreciated. Thanks in advance!
    Carolyn

    I”m in the same boat as andrewfox and cshel.

    I found this plugin, and it works great, but I would prefer if it was possible to do this automatically. The plugin adds a custom field in the edit/new page/post-page and then you’ll be able to type in whatever you want, and it becomes the page/post’s permalink.

    as I said, I would’ve prefered an automatically option.
    somehow to connect it with the category-page or something.

    I don’t know how, but maybe someone else knows ;O

    Any update on this?

    I’d love to have a certain category follow a different permalink structure. Example:

    /Date/post-name/
    for most of the categories, then

    /category-name/sub-category/post-name/
    for a specific parent category.

    Any ideas?

    I just posted my solution to this problem on another thread here:

    Hope this helps.

    Paul

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘A different Permalink for a specific Category’ is closed to new replies.