hussew Posted January 6, 2010 Share Posted January 6, 2010 hey, the only time my SSL is proving to be an issue is when someone goes to a page that doesnt have "www." in the url. Is tehre anyway to force the www. at the beginning of every page's url Link to comment Share on other sites More sharing options...
Paul C Posted January 6, 2010 Share Posted January 6, 2010 There's a few ways to do it. If you only have one domain (aren't parking other domains or transferring credit from previous domains to this one), then you can use the following (at the top) of your .htaccess file in the root of the domain: RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteCond %{SERVER_PORT}s ^(443(s)|[0-9]+s)$ RewriteRule ^(.*)$ http%2://www.example.com/$1 [R=301,L] Obvously replace example.com with your own domain, and note that the \. is to escape any "dots" so .co.uk would be \.co\.uk but only need (and sometimes not) in the RewriteCond(ition) statement.This should likely work woth Prestashop friendly urls but I'm not in a position to test it right now!EDIT: the above also assumes that ssl is running on port 443 Paul 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