• Ok, not sure if this is even possible but I thought I’d ask anyway.

    I have two different types of posts, let’s say category-1 and category-2. My permalink structure is set to /%postname%/.

    Now, I want all posts in category-1 just to use my permalink structure (http://www.mysite.com/post-name), but I want my category-2 posts to sit in another subdirectory (http://www.mypage.com/foo/post-name). Is this possible to do, perhaps with a plugin?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dehlz

    (@dehlz)

    anyone?

    Basically you’re asking how to have 2 different sets of rewrite rules working at once…

    If you want to use custom rewrites then you’ll need to start reading up on mod_rewrite and how to write the rules, it’s not simple (not what you’re asking)… which is why you’ve likely not received much of a response..

    In theory, yes you could do it (most things are possible)… but you’d need to have some explicit understanding of how the rewrite rules work, where they need adjustment, where new additions need to be, and so on…. (or you could ask someone that has a very good knowledge of mod_rewrite)..

    Option 1: Personally i’d suggest hiring someone who has some in-depth knowledge of mod_rewrite (if not only for peace of mind) to write the custom rules to work alongside the existing rules..

    Option 2: The cheap alternative is to read the docs and start playing with the rules yourself (use a test install of course), like i do… 🙂

    Option 3: Wait here patiently and hope someone offers up a solution..

    Once you understand more of how mod_rewrite works, i think you’ll be able agree there’s more then a few ways you could do this, but each would require testing, testing…. testing and ….more testing.. (not something a forum volunteer is likely to do for you – sorry)..

    Thread Starter dehlz

    (@dehlz)

    Thanks for the detailed post t310s. I knew it wasn’t going to be a simple solution, but thought maybe the smart people here would know of an easier way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Specific posts going to a specific subdirectory?’ is closed to new replies.