httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Schweikle <>
Subject [users@httpd] Trubble with rewrite rules
Date Fri, 16 Dec 2016 15:26:18 GMT

I am redirecting all connections to https:

   RewriteEngine On

   RewriteCond %{HTTPS} !=on
   RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

That is working so far. Now an other thing to do I've moved some
content to an other place and I want users accessing the old place to
be redirected to the new place. I've added:

   RewriteRule ^/xyz/(.*) "/abc/$1" [R,L]

But this does not work at all. My second rule is not touched at all.
Moving the rule up does not help. It is touched now, but does not do
anything ...

What I am doing wrong?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message