Author |
|
Cui
Joined: 11 Jan 2016 Posts: 8 Location: Beijing
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 13 Jan '16 13:15 Post subject: |
|
|
Code: | <VirtualHost *:80>
DocumentRoot /var/www/html/
ServerName domain.com
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !=/thr
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</VirtualHost> |
|
|
Back to top |
|
Cui
Joined: 11 Jan 2016 Posts: 8 Location: Beijing
|
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Wed 13 Jan '16 17:44 Post subject: |
|
|
Do a
RewriteCond %{REQUEST_URI} != ^/(three) |
|
Back to top |
|
Cui
Joined: 11 Jan 2016 Posts: 8 Location: Beijing
|
Posted: Thu 14 Jan '16 2:51 Post subject: |
|
|
Thanks. It works well. |
|
Back to top |
|