Rewrite URLs with nginx
A previous work project involved changing our blog software and server configuration. Date-based URLs would no longer be used, and the blog would be run within the main site instead of on a subdomain. The "slug" (which is "this-is-the-page-slug" in this example) would be retained for blog posts in the new app. Mapping URLs from the old format of http://subdomain.domain.com/2007/3/19/this-is-the-page-slug to the new format of http://www.domain.com/blog/this-is-the-page-s...





