httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Folino, Nick E CTR USARMY HRC (US)" <>
Subject RE: [users@httpd] mod_rewrite config (UNCLASSIFIED)
Date Wed, 11 Dec 2013 20:12:36 GMT
Classification: UNCLASSIFIED
Caveats: FOUO

Use redirect instead:


-----Original Message-----
From: Jonathan-Marc Lapointe [] 
Sent: Wednesday, December 11, 2013 2:25 PM
Subject: [users@httpd] mod_rewrite config


I'd like to redirect all traffic going to to

But I want traffic going to to be left alone.

I tried with the following config:

RewriteEngine On

RewriteCond %{HTTP_HOST} ^$ [NC] RewriteCond %{HTTPS} =on RewriteRule ^/?(.*)$1 [R,L]

But it does not work.

Traffic going to is not rewritten to

What am I doing wrong ?

Thanx !

CCDMD 20 ans !

Jonathan-Marc Lapointe
Technicien en informatique,
Administrateur système,
Administrateur réseau

Centre collégial de développement de matériel didactique 6220, rue Sherbrooke Est, bureau
404 Montréal (Québec) H1N 1C1
(514) 864-8928
Skype: jmlccdmd

Classification: UNCLASSIFIED
Caveats: FOUO

View raw message