Question

I want to redirect user's request url like http://site/a/index.html to http://a.site/index.html. And further more keep user browser's url not changed. Does urlrewrite(http://www.tuckey.org/urlrewrite/) support this? How should I implement this? I need to change the url because I can not alter DNS server. Thank you!

No correct solution

OTHER TIPS

It should work, since it claims to be the JSP equivalent of mod_rewrite. Also, if you want to redirect http://site/a/index.html to http://a.site/index.html, you could use HTTP redirection, or just a simple

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top