Вопрос

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!

Нет правильного решения

Другие советы

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">
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top