Re: Will these rewrite rules do what I expect?

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 09/30/2014 10:33 PM, James Moe wrote:
> I wish to have three rules 1. if URL =
> http[s]://info.massamio.com/blog, redirect to 
> http://blog.sohnen-moe.com/ 2. if URL =
> http[s]://info.massamio.com/resources, redirect to 
> http://blog.sohnen-moe.com/ 3. any other http[s]://*massamio.com/
> redirects to https://sohnen-moe.com/timely/massamio.php
> 
  I did not need the rewrite engine at all. The following works quite
well:

RedirectMatch permanent ^/blog(.*) http://blog.sohnen-moe.com/
RedirectMatch permanent ^/resources(.*)
https://sohnen-moe.com/resources/c2a-massamio-resources.php
RedirectMatch permanent ^(.*)$ https://sohnen-moe.com/timely/massamio.php


- -- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iEYEARECAAYFAlQwmhUACgkQzTcr8Prq0ZM4OACgm9s/nrxYHRI6Jya3oIxTCvZH
LGcAn0NID7reZ6jNU2xbyZc9FA9S09cQ
=y430
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
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