keweli Posted October 11, 2010 Share Posted October 11, 2010 I set up SSL on my site, everything works fine except the cert is for http://mysite.com and not http://www.mysite.com.When I go to http://www.mysite.com, files that used {base_dir_ssl} won't load and there is a cert problem.What can I do?Is the only way to make www redirect to NO www?thanks Link to comment Share on other sites More sharing options...
Martin Velikov Posted October 11, 2010 Share Posted October 11, 2010 You should either purchase a new SSL that will also cover the domain name including the www certificate and install the new SSL for your store or create a redirect to make sure all visitors are accessing the website without the www prefix. Link to comment Share on other sites More sharing options...
keweli Posted October 11, 2010 Author Share Posted October 11, 2010 I have redirected all http://www to http:// by editing the htaccess with this: RewriteEngine on RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^example\.com RewriteRule (.*) http://example.com/$1 [R=301,L] It works good, but if someone copies a link of the checkout page with www, there is a problem.Anyone know how to add anything so that my https://www.site.com will also be redirected to https://site.com? Link to comment Share on other sites More sharing options...
eltitos Posted October 12, 2010 Share Posted October 12, 2010 hi, Anyone know how to add anything so that my https://www.site.com will also be redirected to https://site.com? try thisRewriteCond %{HTTPS_HOST} !^example\.com RewriteRule (.*) https://example.com/$1 [R=301,L] Link to comment Share on other sites More sharing options...
Martin Velikov Posted October 12, 2010 Share Posted October 12, 2010 It is pretty much the same just use HTTPS_HOST instead of HTTP_HOST in the example. Leave both redirects working. Link to comment Share on other sites More sharing options...
keweli Posted October 12, 2010 Author Share Posted October 12, 2010 If I have this:RewriteEngine onRewriteCond %{HTTP_HOST} .RewriteCond %{HTTP_HOST} !^example\.comRewriteRule (.*) http://example.com/$1 [R=301,L]RewriteCond %{HTTPS_HOST} !^example\.comRewriteRule (.*) https://example.com/$1 [R=301,L] It won't no which to redirect to. Only 1-2 of my pages use https. Others I still need http. Link to comment Share on other sites More sharing options...
Guest Posted November 8, 2010 Share Posted November 8, 2010 If all the pages are under that domain then you shouldn't have to purchase a new SSL just for it to be covered. You need to fix the ini.php file so that all pages have the same prefix either "www.yourdomain.com" or "yourdomain.com" can't use bothAlso try and call the hosting for ssl they might change it the way you want, if you act dumb and and say you didn' know. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now