Chris Coleman
asked on
Modify incorrectly formed https url .. Help ?
My .htaccess look like this ..
# Correct incorrect URLs
# ----------------------
Options +FollowSymLinks
RewriteEngine on
# Make complete URL ... i.e. if a shortened url is give ..
RewriteCond %{HTTP_HOST} !^www\.jennifersofwalsall\ .co\.uk$ [NC]
RewriteRule ^(.*)$ http://www.jennifersofwalsall.co.uk/$1 [R=301]
# Always use SSL in store , if a request is to the store force "https"
RewriteCond %{HTTPS} off
RewriteRule store/(.*) https://www.jennifersofwalsall.co.uk/store/$1 [NC,R=301]
# Correct possible additional trailing slash caused by previous rewrite ..
RewriteCond %{HTTPS} on
RewriteRule store//(.*) https://www.jennifersofwalsall.co.uk/store/$1 [NC,R=301]
##############
The above seems to work pretty well but the following does not, i want to rewrite
"https://myname.com" as "https://www.myname.com" (i.e. The SSL certification requires a properly formed url).
I have tried,
various things including port 443 but so far without success.
Please Help !
ChrisColeman.
# Correct incorrect URLs
# ----------------------
Options +FollowSymLinks
RewriteEngine on
# Make complete URL ... i.e. if a shortened url is give ..
RewriteCond %{HTTP_HOST} !^www\.jennifersofwalsall\
RewriteRule ^(.*)$ http://www.jennifersofwalsall.co.uk/$1 [R=301]
# Always use SSL in store , if a request is to the store force "https"
RewriteCond %{HTTPS} off
RewriteRule store/(.*) https://www.jennifersofwalsall.co.uk/store/$1 [NC,R=301]
# Correct possible additional trailing slash caused by previous rewrite ..
RewriteCond %{HTTPS} on
RewriteRule store//(.*) https://www.jennifersofwalsall.co.uk/store/$1 [NC,R=301]
##############
The above seems to work pretty well but the following does not, i want to rewrite
"https://myname.com" as "https://www.myname.com" (i.e. The SSL certification requires a properly formed url).
I have tried,
various things including port 443 but so far without success.
Please Help !
ChrisColeman.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many thanks,
Chris.