This content has been marked as final.
Show 1 reply
-
1. Re: How to redirect domain to new domain?
jadtn Feb 8, 2009 12:25 PM (in response to jadtn)Hi,
I think i have found but not completely:
In /conf/
I write this properties file : rewrite.propertiesRewriteCond %{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 isRewriteRule ^(.*) http://www.a.com$1 [L,R=301] (remove / before $1)
the url is good.
So all exemple i found on internet
rule wasRewriteRule ^(.*) http://www.a.com/$1 [L,R=301]
and notRewriteRule ^(.*) 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)