Reply to comment

mod rewrite rule

A quick one about mod_rewrite. I added ssl to cduce.org for our user pages. However I've no use of ssl to serve our static pages. This rule will redirect all https requests (^443$) that are not related to userdirs (!^/~) to http:// .


RewriteEngine on
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{REQUEST_URI} !^/~
RewriteRule ^(.*)$ http://www.cduce.org$1 [L,R]

Reply

The content of this field is kept private and will not be shown publicly.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
T
n
x
W
g
D
Enter the code without spaces and pay attention to upper/lower case.