I have a site with a WordPress blog which has the usual permalink structure:
But I'd like to include the date in the permalink:
So a post like this:
would translate/redirect to this
I know I must apply a rewrite rule to send all previous permalinks (that are now indexed on search engines such as Google, Yahoo or Bing) to the new ones, because if I don't do so, all those links will get a 404, right?
What's the right way to do that in Nginx? That's the webserver I'm working with, but the structure of the rewrite rules is quite a mistery for me :(
********* UPDATE **********
Well, the question was finally solved thanks to the magic of WordPress. In fact, I haven't had to do anything with Nginx or rewrite rules.
The fact is, when Google shows a result of your WP blog, it goes to the link listed, but then WordPress converts automatically this link to the right one you've got according to your permalinks structure.
So I've just changed my permalinks structure that now has the date on the URL, and everything is working properly. No Google (or other search engines) punishment, after all ;)