Permalinks and WordPress rewrite

I tried to find a way to use /year/month/date/slug/ structure in my permalinks and also allow posts to be accessed by the slug only. Choosing either one was easy but having them both working at the same time seemed to be a problem for my WordPress installation.

Adding new rewrite rules was easy after I found Rewrite viewer plugin but still WP just didn’t show up the posts. This was important because I wanted to use the long form and also let old permalinks work as they used to. I finally wrote my own external script that that searches the database for the post and redirects user to the right address. That way my posts also should not show up multiple times in search engines.


About this entry