httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Barry <ma...@supine.com>
Subject Re: [users@httpd] Rewrite Conditions & Rules
Date Fri, 04 Mar 2011 07:46:46 GMT
Hi Ian

$quoted_author = "Ian Stradling" ;
> 
> Here is what I've gleaned from the log I started.  FYI, I clicked on a
> link within the website that is supposed to go to ../insurance-tips/
> Anything related to /insurance-tips, /add-a-tip, /home, and / are supposed
> to NOT be HTTPS...yet, whenever I click on the 'insurance-tips' link, it
> comes up as HTTPS.

Your patterns both specify 

        ^/insurance-tips/$ 

while this request has REQUEST_URI of

        /insurance-tips/40/54-front-end-capabilities

which clearly doesn't match and hence the redirect is from HTTP to HTTPS.


If you want everything in that directory to be HTTP only then I think the
regex you need to use is

        ^/insurance-tips

in both sections.


You could also reduce the verbosity of your second section by using [OR] on
the RewriteCond lines with a single RewriteRule.

cheers
Marty

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message