Need Cert For Both Www And Base Domain?
#1
Posted 14 February 2006 - 08:22 PM
Thanks,
Bruce
#2
Posted 15 February 2006 - 01:47 AM
#3
Posted 15 February 2006 - 02:00 AM
Bruce
#5
Posted 15 February 2006 - 02:16 AM
rewriteEngine on
rewriteCond %{HTTP_HOST} !^tchdomain\.com
rewriterule (.*) https://tchdomain.com/$1 [R=301,L]However, it does depend on what else you are doing, and if you want everything on https, etc. etc.
#6
Posted 15 February 2006 - 11:51 AM
I am implementing an osCommerce store and just need https for the account and checkout functions.
Thanks,
Bruce
#7
Posted 15 February 2006 - 01:39 PM
RewriteEngine On
RewriteCond %{SERVER_PORT} =443
RewriteRule ^ https://tchdomain.ext%{REQUEST_URI} [R,L]
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ http://tchdomain.ext%{REQUEST_URI} [R,L]The first will redirect your secure and the second your http.
If it doesn't work - shout, and we'll take a closer look.
#8
Posted 15 February 2006 - 03:51 PM
crippenlandru.biz
#9
Posted 15 February 2006 - 04:10 PM
Just to check my understanding, you want any request coming in, for any file, to use the shared (not your) SSL ?
#10
Posted 15 February 2006 - 06:18 PM
TCH-Andy, on Feb 15 2006, 04:10 PM, said:
I'm not entirely decided but yes this may be a possibility.
would the code line then be:
RewriteRule ^ https://server###.tchmachines.com/~username%{REQUEST_URI} [R,L]
crippenlandru.biz
#11
Posted 16 February 2006 - 01:48 AM
TCH-Andy, on Feb 15 2006, 01:39 PM, said:
RewriteEngine On
RewriteCond %{SERVER_PORT} =443
RewriteRule ^ https://tchdomain.ext%{REQUEST_URI} [R,L]
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ http://tchdomain.ext%{REQUEST_URI} [R,L]The first will redirect your secure and the second your http.
If it doesn't work - shout, and we'll take a closer look.
Thanks Andy. I will give this a try when your techs figure out how to install my SSL cert.
Bruce
#12
Posted 16 February 2006 - 01:21 PM
I tried your code but I get a "redirect limit exceded" error. This is what I currently have in .htaccess. I commented out the https stuff as part of my testing. Any ideas?
Bruce
RewriteEngine On
###RewriteCond %{SERVER_PORT} =443
###RewriteRule ^ https://2wheelhobbies.com%{REQUEST_URI} [R,L]
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^ http://2wheelhobbies.com%{REQUEST_URI} [R,L]
#13
Posted 16 February 2006 - 01:44 PM
Corrected .htaccess
RewriteEngine On
RewriteCond %{SERVER_PORT} =443
RewriteRule ^https://tchdomain.ext%{REQUEST_URI} [R,L]
RewriteCond %{SERVER_PORT} !=443
RewriteRule ^http://tchdomain.ext%{REQUEST_URI} [R,L]

Sign In
Register
Help

MultiQuote