Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL problem advice needed


ShaGGy

Recommended Posts

Posted

I have just repurchased a new SSL mydomain.co.uk

 

when I tried accessing the SSL pages i got the error that the cert was for mydomaimn.co.uk but the URL was www.mydomain.co.uk

 

I altered config.php and removed the www. on the SSL line which seems to have fixed it but the URL's are now missing www. which will cause issues with people who have saved their password etc.

 

Can this be reconfigured/installed by my host so it works with www.mydomain.co.uk ?

Posted

I found a .htaccess redirect on the web and it seemed to work for me:

 

# Redirect non www. 
Options +FollowSymLinks 
RewriteEngine On 
RewriteCond %{HTTP_HOST} ^mydomain.co.uk [NC] 
RewriteCond %{HTTPS} !^on$ 
RewriteRule ^(.*)$ http://www.mydomain.co.uk/$1 [R=301,L]

If it doesn't work don't ask me what to change - I'm no .htaccess guru

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...