Title: Multiple permalink format?
Last modified: August 18, 2016

---

# Multiple permalink format?

 *  [atmasphere](https://wordpress.org/support/users/atmasphere/)
 * (@atmasphere)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/multiple-permalink-format/)
 * Is it possible to support more than one permalink format for posts?
    I’d really
   like to use /archives/%year%/%monthnum%/%day%/%postname% but I want to make it
   easier to redirect my old MT blog which used something more like /archives/%post_id%/
   I have them both in my .htaccess and it seems to be working. Are there any issues?
   Should one be before the other to be the default?

Viewing 12 replies - 1 through 12 (of 12 total)

 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42058)
 * Nope, you can have as many “structures” in your `.htaccess` as you want, with
   no problems. I would recommend using the longer one as the default, as it’s more
   meaningful.
 *  Thread Starter [atmasphere](https://wordpress.org/support/users/atmasphere/)
 * (@atmasphere)
 * [22 years, 2 months ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42133)
 * Very cool – thanks!
 *  [chigh](https://wordpress.org/support/users/chigh/)
 * (@chigh)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42507)
 * Now that permalinks are handled internally… is this possible and is there any
   documentation on how to put in the multiple structures?
 *  [scottplumlee](https://wordpress.org/support/users/scottplumlee/)
 * (@scottplumlee)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42511)
 * Any ideas on how to specify one permalink structure for posts in a particular
   category, and another for all other posts? Example – I want permalinks for items
   in the news catagory to be /news/YYYY/MM/DD/post-name/, but all other permalinks
   to be /category/post-name/. Is this possible?
 *  [scottplumlee](https://wordpress.org/support/users/scottplumlee/)
 * (@scottplumlee)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42512)
 * Just mentioning that the same question is asked and answered (for an older version
   of WP) here: [http://wordpress.org/support/topic/36452?replies=2#post-206198](http://wordpress.org/support/topic/36452?replies=2#post-206198).
   Wonder if this is still true. Time to dig into the code.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42513)
 * At that time (version 1.5.x) every htaccess rule was in the file. Since 2.0.x
   the rules are handled internally, and the htaccess file is always the same. There
   might be a way, but probably deep inside the core files. (I don’t know)
 *  [scottplumlee](https://wordpress.org/support/users/scottplumlee/)
 * (@scottplumlee)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42514)
 * Thanks for the reply, moshu. I’ll start taking a look. I’d like to have some 
   better documentation on the internals of how permalinks work, so maybe this is
   how I can give something back.
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42515)
 * Hey scottplumlee — this plugin might be useful for the research aspects (no, 
   it doesn’t solve your issues): [http://www.dagondesign.com/articles/wordpress-internal-rewrite-viewer-plugin/](http://www.dagondesign.com/articles/wordpress-internal-rewrite-viewer-plugin/)
 * But if you’re ever curious about what WP is doing “under the covers” for rewrites,
   it’ll sure help.
 *  [scottplumlee](https://wordpress.org/support/users/scottplumlee/)
 * (@scottplumlee)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42516)
 * Work not, it did, young Solo, until I updated my .htaccess file. Saw the instructions
   in your comments. Thanks for the tip.
 *  [scottplumlee](https://wordpress.org/support/users/scottplumlee/)
 * (@scottplumlee)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42517)
 * Also wanted to add – from reading the Apache documentation, the .htaccess file
   is less efficient than adding a <Directory> entry in the httpd.conf file and 
   applying the permalink structure there. I believe it has to do with how .htaccess
   files have make Apache check every directory above the current one for .htaccess
   files, but I could be wrong. Since it’s normally, in the root folder, it’s not
   a huge deal. I wonder if there would be a way that you could include an option
   to add the rewrite rules to that file rather than creating a .htaccess file. 
   I realize not everyone has control over their Apache install, so that’s why it
   would have to be an option.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42518)
 * _I realize not everyone has control over their Apache install_
 * It’s quite the opposite: the majority of WP users do NOT have control since they
   are on a hosted environment.
    I admire anybody who can write a line of code (
   because I can’t) – if they don’t forget about us, non-geeks 😉
 *  [scottplumlee](https://wordpress.org/support/users/scottplumlee/)
 * (@scottplumlee)
 * [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42519)
 * Hmm, not to split hairs, but:
    _I realize **not** everyone has control over their
   Apache install_ and _the majority of WP users do NOT have control since they 
   are on a hosted environment._ are saying the same thing.
 * I was trying to make that exact point – if you don’t have control over the install,
   httpd.conf is probably off limits for you. But if you did have control, then 
   it would be nice and tidy to be able to include the Directory code. But then 
   again, making a .htaccess file world writeable and making your httpd.conf file
   world writeable are miles apart in security implications, so should probably 
   think a little more before I type. <grin>

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Multiple permalink format?’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 6 participants
 * Last reply from: [scottplumlee](https://wordpress.org/support/users/scottplumlee/)
 * Last activity: [20 years, 1 month ago](https://wordpress.org/support/topic/multiple-permalink-format/#post-42519)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
