|
In the spirit of answering my own
question:
To make things pretty for search engines I want my
new URLs to look like:
where id-12345 indicates the product id the requestor wishes to see.
I am using a command pattern so prior to my rewrite efforts all my product
detail URLs looked like:
jBoss hosts the database driven part of the website and I don't want to
rearchitect so I have my rewrite rule change the pretty inbound URL to the
process_command form.
The problem is I need to send permanent 301 redirects for all inbound
requests of the old form so that the outside world will be permanently
redirected to the pretty URL. If Apache does the url rewrite, the java application server receiving the HTTP
request has no visibility to the original form or the URL. It seems
the only way to do is to have a rewrite rule in Apache that sends all inbound
old style URLs to a servlet that builds a pretty URL and issues a
permanent redirect.
Thanks for the input.
David
----- Original Message -----
|
_______________________________________________ Juglist mailing list [email protected] http://trijug.org/mailman/listinfo/juglist_trijug.org
