Added legacy support for Wordpress URL routing