mardi 18 août 2020

RewriteRule in Apache2

I have a problem with the rewrite rule. Need to redirect the web site http://example.com/ to http://example2.com/ but without url http://example.com/bla/*

Now I got it, but unfortunately it does not work properly:

RewriteCond %{HTTP_HOST} ^example\.com$ 
RewriteCond %{REQUEST_URI} ! /bla/ 
RewriteRule ^(.*)$ http://example2.com/$1 [R=301,L]



Aucun commentaire:

Enregistrer un commentaire