I have a site that produces many dynamic company profiles. These are all displayed by one jsp page with a parameter that identifies the company.
I am no expert on SEO practices but I am certain that a user friendly url would be better for search engines then an obscure parameter.
so instead of
site.com/company.jsp?id=21312
it should probably read
site.com/Country/State/Company_Name
or something to that effect.
Are there any existing strategies or best practices for producing those url's? My environment is a jsp/servlet tomcat container and I am using a front view controller pattern if that makes any difference.
Here are 2 of my thoughts on how to solve it.
1) When the company profile is saved (backend) a html page is generated with a redirect to the parameterized jsp. This page will be saved in a directory structure that matches the example i gave above. /CountryName/StateName/CompanyName.html
I don't know if search engines will just disregard it since it redirects to another page. I also predict housekeeping could become a problem when company names change or their locations change. So I don't know if this is the best path to take.
2) Somehow have a servlet that interprets the url and redirects accordingly.
So in other words have a servlet named Map (for example) and so a url like : site.com/Map/Country/State/CompanyName
will be picked up by the Map servlet and breakdown the url in order to find the page in question.
I dont know if that is even possible by servlets. (Edit : It can be done with Map/*)
If there is any other option I am missing please let me know or if I can improve on one of my existing thoughts.
Many thanks.