Jump to content

/blog/CATEGORY/YYYY/MM/ANYTHING to /blog/YYYY/MM/ANYTHING?


ultrus

Recommended Posts

Hello,

I'm puzzled with a redirect with recent wordpress url changes. How would I convert urls like:

http://mywebsite.com/blog/the-category/2008/09/the-post-title

to

http://mywebsite.com/blog/2008/09/the-post-title ?

 

Here is a starting point so far:

/blog/([a-z\-]+)/2008/([0-9]+)/([a-zA-Z0-9\-])

/blog/2008/$2/$3

 

Does that look right and how do I place it in a mod_rewrite rule?

 

Thanks much in advance. :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.