httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Moe <ji...@sohnen-moe.com>
Subject [users@httpd] Will these rewrite rules do what I expect?
Date Wed, 01 Oct 2014 05:33:37 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


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

Will the rules below do that?
(I cannot test it directly, yet.)

RewriteEngine on
RewriteCond %{REQUEST_URI} =/info.massamio.com/blog
RewriteRule ^(.*)$ http://blog.sohnen-moe.com/ [R,L]

RewriteEngine on
RewriteCond %{REQUEST_URI} =/info.massamio.com/resources
RewriteRule ^(.*)$
https://sohnen-moe.com/resources/c2a-massamio-resources.php [R,L]

RewriteEngine on
RewriteCond %{HTTP_HOST} =www.massamio.com
RewriteRule ^(.*)$ https://sohnen-moe.com/timely/massamio.php [R,L]

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

iEYEARECAAYFAlQrkjEACgkQzTcr8Prq0ZPm0wCfdiQ/6rxmaBdW52BFGfceofbL
DzUAnRUwlZ44CAXAZVq79S2RIV2/G9Fq
=dG+Y
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message