[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: How to redirect domain to new domain?
jadtn@laposte.net
do-not-reply at jboss.com
Sun Feb 8 12:25:32 EST 2009
Hi,
I think i have found but not completely:
In /conf/
I write this properties file : rewrite.properties
RewriteCond %{HTTP_HOST} ^www.a.fr [NC]
| RewriteRule ^(.*) http://www.a.com/$1 [L,R=301]
In server.xml i put just after engine:
<Valve className="org.jboss.web.rewrite.RewriteValve" />
But with this the server redirect to http://www.a.com// instead of http://www.a.com/ (with only 1 / at the end)
If my rule is
RewriteRule ^(.*) http://www.a.com$1 [L,R=301] (remove / before $1) the url is good.
So all exemple i found on internet
rule was RewriteRule ^(.*) http://www.a.com/$1 [L,R=301] and not RewriteRule ^(.*) http://www.a.com$1 [L,R=301]
It s seem i have not the standard behaviour. There is someone who has this strange behaviour? So what is the risk i f use "my" rule?
Thanks
I use Jboss4.2.2/richfaces/jsf(sun)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4208004#4208004
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4208004
More information about the jboss-user
mailing list