My current blog is on Blogger and my articles have a structure like /YYYY/MM/slug.html
. Would it be possible to change the permalink structure for specific Contenttypes?
It is also the default for Wordpress.
If not possible, what is the preferred way to deal with those redirections? Something like a route matching /(?P<year>\d{4})/(?P<month>\d{2})/(?P<slug>[a-z0-9\-]+)\.html
that would search the database and redirect if found.
Generating URLs like that in bolt would be hard, but accepting them is easy. Just set up an extra route to catch them, coming in.
Create a new binding in
routing.yml
, like this:Combine that with a route to create (and catch) URL's like
/2014-12-19/slug-slug
, and you should have something that's close to what you need.