jmass78 Posted September 25, 2009 Share Posted September 25, 2009 Hello,I was wondering if Prestashop had a way of configuring the shop links so that if a visitor typed in our url using www it would remove the www on links while they are browsing. Our SSL is setup without the www and it would be a smoother experience if the visitor didnt get an invalid certificate error if the choose to create an account. I know this is possible on other shopping carts weve used.Thanks for your help! Link to comment Share on other sites More sharing options...
Mikkime23 Posted September 28, 2009 Share Posted September 28, 2009 I know right. I've been wondering the same thing. I really don't want to have to waste more money buying another SSL Certificate if I can help it.Although there should be someone who knows something about scripting and coding who can give us a line or two to put into our init.php file where the ssl commands are kept.Please help us guys. Link to comment Share on other sites More sharing options...
Star Posted September 29, 2009 Share Posted September 29, 2009 There are so many ways you can do it.If you can access your cpanel for your site then there would be an option for redirecting. try accessing your cpanel. Or read this:http://www.codealpha.net/50/how-to-redirect-a-url-without-www-to-a-normal-url/ Link to comment Share on other sites More sharing options...
Mikkime23 Posted September 29, 2009 Share Posted September 29, 2009 I had a look at this and this redirects to a www.In my cpanel I have already redirected the URL to my prestashop without the www, yet when I turn prestashops SSL option on, as soon as it tries to go to an encrypted page, it shoves the www right back on the front.Now I have found the script for this in the init.php file but seeing as though I cannot code I need someone to help. Link to comment Share on other sites More sharing options...
Mikkime23 Posted September 29, 2009 Share Posted September 29, 2009 I figured it out! All we need to do is turn on friendly URL option. Link to comment Share on other sites More sharing options...
jmass78 Posted September 29, 2009 Author Share Posted September 29, 2009 Found it!!If friendly URL's doesnt solve it for you then you need to edit the .htaccess in your home directory to contain the following lines:RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]just replace example with your domain and works like a charm! 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