Trubble with rewrite rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

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?


-- 
Thomas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux