Link to home
Start Free TrialLog in
Avatar of Chris Coleman
Chris ColemanFlag for United Kingdom of Great Britain and Northern Ireland

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.


 





ASKER CERTIFIED SOLUTION
Avatar of ravenpl
ravenpl
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Chris Coleman

ASKER

Yes.

Many thanks,

Chris.