문제

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