Maurizio1230
07-16-2010, 10:13 PM
Hi all,
I set some RewriteCond in order to redirect from some pages (80 port) to its corresponding ssl pages (443):
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /LogIn.php
RewriteRule ^(.*)$ https://site.com/LogIn.php [R,L]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /ok.php
RewriteRule ^(.*)$ https://site.com/ok.php [R,L]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /ko.php
RewriteRule ^(.*)$ https://site.com/ko.php [R,L]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /bho.php
RewriteRule ^(.*)$ https://site.com/bho.php [R,L]
Is it possible to sum/summarize them in less lines?
After that, is it possible to redirect from all ssl pages, that aren't listed above, to its corresponding non-ssl page?
Thank you very much
I set some RewriteCond in order to redirect from some pages (80 port) to its corresponding ssl pages (443):
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /LogIn.php
RewriteRule ^(.*)$ https://site.com/LogIn.php [R,L]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /ok.php
RewriteRule ^(.*)$ https://site.com/ok.php [R,L]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /ko.php
RewriteRule ^(.*)$ https://site.com/ko.php [R,L]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} /bho.php
RewriteRule ^(.*)$ https://site.com/bho.php [R,L]
Is it possible to sum/summarize them in less lines?
After that, is it possible to redirect from all ssl pages, that aren't listed above, to its corresponding non-ssl page?
Thank you very much