4 Replies Latest reply on Feb 12, 2009 4:29 AM by Jean-Frederic Clere

    Rewrite  url, http code 302 instead of 301.

    Adrien Adrien Apprentice

      Hi,
      I want to move permanently some page and domain.
      When i look http header it's http code 302
      So i specified 301, here the rewrite.properties under /conf/


      RewriteRule ^/?pages/pub/typerencontres/([a-z/.]+)$ /$1 [R=301,L]
      RewriteRule ^/?pages/pub/typerencontres/([a-z/.]+)$ /$1 [R=301,L]
      RewriteRule ^/?pub/html/partenaires.jsf$ /pages/pub/annuaire-rencontres.jsf [R=301,L]
      RewriteCond %{HTTP_HOST} ^www.a.fr [NC]
      RewriteRule ^(.*) http://www.a.com$1 [R=301,L]


      What s wrong?
      I use jboss 4.2.2 / jsf
      Thanks