I am developing simple cms for an online health magazine using JSP, Tomcat and urlrewritefilter to rewrite URLs. I am transferring content from Wordpress and must maintain permalinks on the site. Permalinks looks below, only letters and numbers.
http://www.example.com/post-or-category-name-with-letters-or-1234/
I want to rewrite my url in my jsp application so that I have URLs like the ones described above. The Rewrite rule should work as follows.
http://www.example.com/post/?pid=1234&name=post-name http://www.example.com/category/?cid=1234&slug=category-slug
in
http://www.example.com/post-name/ http://www.example.com/category-slug/
And, of course, vice versa.
How can I use permalink structure in Wordpress using urlrewritefilter? Do I need to write a servlet to get the identifier of a name or bullet from the database?
Does anyone have an idea how to do this or do it earlier?
source share