vendredi 31 octobre 2014

Apache 301 redirect rewrite / to /en and keep /fr to /fr keeping all passed variables


Vote count:

0




I have a bilingual Wordpress site that I am changing the domain for and the following redirect works great.



RewriteEngine on
RewriteCond %{HTTP_HOST} !^newdomain\.com$
RewriteRule ^ http://newdomain.com%{REQUEST_URI} [L,R=301]


The problem is I would like to have



http://ift.tt/1nZ6I8v


to redirect to



http://ift.tt/1nZ6FcS


but keep



http://ift.tt/1qcPiRL


redirecting to



http://ift.tt/1nZ6FcV


I'm not sure if having both languages explicit in the URL is a good idea but I'd like to try it out.



asked 43 secs ago

chris

1,176






Apache 301 redirect rewrite / to /en and keep /fr to /fr keeping all passed variables

Aucun commentaire:

Enregistrer un commentaire