Totally Zenned
- Join Date:
- Feb 2004
- Posts:
- 1,702
- Plugin Contributions:
- 5
zen-cart.com -> www.zen-cart.com -- How to do?
This one is aimed at a simple question to the zen-cart webmaster.
On my old site, I was using a shared reseller that had *.sharedssl.com. This was nice because no matter what subdomain, it would kick in ssl without giving the prompt about the addresses not matching up.
Now I got a real one for my site alone and it had to be https://www.mysite.com so only "www" will not give the warning. I thought I had it set in my .htaccess to mod_rewrite prepend the "www" onto the front of the domain name so that if someone typed "http://mydomain.com" it would redirect to "http://www.mydomain.com"
But apparently not.
I tried searching htaccess help online but either I don't know what I'm reading or I'm just not searching for the right terms.
I thought it was this code:
RewriteCond %{HTTP_HOST} !^www.
RewriteCond %{HTTP_HOST} ^([^.]+).mydomain.com
RewriteRule ^/(.*)$ /home/%1/www/$1 [L]
But I don't really know what that does.
I do notice that "zen-cart.com" turns into "www.zen-cart.com". And I'm wondering are you just using a simple redirect for ALL versions of the url to a "www" version of the domain? or are you checking to see if the www is already on there and using some sort of rewrite?
How do you do it? (assuming .htaccess)
Templates: Silverfish | Blue Admin | TruBlu
Contribs: USPS AutoFill | Column Divider Pro | Tabbed Products Pro | Main Image Replacer
DoNaTiOnS WeLcOmE!