WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks Slug Slash (4 posts)

  1. sknil
    Member
    Posted 7 years ago #

    I have a pretty good grasp on permalinks, but is there way to either have specific posts incorporate a different permalinks structure than all the other posts or even just be able to add a slash in the "post slug" of that post?

    For example my permalinks are set up like this:
    http://www.domain.com/post-title/

    I like this but for SOME SPECIFIC posts I would like to either be able to do:
    http://www.domain.com/category/post-title/

    OR

    Be able to change the post slug for that post (by adding a slash "/") to be
    http://www.domain.com/modified-post-slug/post-title/

    If I try to add the slash now, the URL comes out as follows:
    http://www.domain.com/modified-post-slugpost-title/

    I've tried to add the slash in mysql directly, but then I get 404 error when I try to access the page.

    Can anyone help me with this?

  2. sknil
    Member
    Posted 7 years ago #

    I will pay someone $50 if they can make some sort of plugin to handle this issue for me.

  3. sknil
    Member
    Posted 7 years ago #

    Anyone have any ideas on this?

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    http://www.domain.com/post-title/
    I like this but for SOME SPECIFIC posts I would like to either be able to do:
    http://www.domain.com/category/post-title/

    Try adding this to the top of the .htaccess file (before all the rest of it)
    RewriteRule /category/post-title/ /post-title/

    Obviously, you'll need one line for each specific URL that you want to rewrite.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags