shahriar Posted December 27, 2010 Share Posted December 27, 2010 I bought SSL certificate for my shop from my host , but when you visitings a page of any products you will get in right down of your browser " Contains unauthenticated content " , when you check source of the page of product still http and when you generate sitemap with presta all the link is http but when you making sitemap with site that make for you sitemap the making Https !!!any one have an idea why it is like that ???? or how i can fix this problem ? Link to comment Share on other sites More sharing options...
rocky Posted December 28, 2010 Share Posted December 28, 2010 Do you have "Enable SSL" set to "Yes" on the Preferences tab? What version of PrestaShop are you using? Link to comment Share on other sites More sharing options...
shahriar Posted January 1, 2011 Author Share Posted January 1, 2011 Hi,Yes i already “Enable SSL” set to “Yes” and i'm using Ver 1.3.3.0. do you have any advise ?thank you Link to comment Share on other sites More sharing options...
rocky Posted January 2, 2011 Share Posted January 2, 2011 I have no idea. Looking at the code, the sitemap should use the URL the website uses, so https for the contact form, order and authentication pages and http for all other URLs. Link to comment Share on other sites More sharing options...
shahriar Posted January 2, 2011 Author Share Posted January 2, 2011 Exactly the problem site map not using Site URL !! another problem is i have to redirect http://www.vagmecard.com to https://www.vgamecard.com that it take usage from my host and host replied for me the "he redirect is fine, but you should ask the provider of the software you're using how to configure it so that the links are written as https:// in the first place so that multiple requests aren't required for every resource on the page. This will result in a speed improvement, and reduce our server usage without requiring that portions of your store be served unsecurely"and i don't know what can i do with this one ? Link to comment Share on other sites More sharing options...
rocky Posted January 2, 2011 Share Posted January 2, 2011 Make sure you weren't using HTTPS when you generated the sitemap. Link to comment Share on other sites More sharing options...
shahriar Posted January 2, 2011 Author Share Posted January 2, 2011 i did make many times sitemap but still http Link to comment Share on other sites More sharing options...
rocky Posted January 2, 2011 Share Posted January 2, 2011 I just went to your site and noticed that when I enter http, I am automatically redirected to https. Also, your signature has https in your URL. Perhaps that is why search engines are putting https on the URLs? Check your .htaccess file and remove any code that is redirecting to https. Link to comment Share on other sites More sharing options...
shahriar Posted January 2, 2011 Author Share Posted January 2, 2011 Exactly i wanted to do it but my technical of my host support said no need no redirect.it is exactly the reply of them "The redirect is fine, but you should ask the provider of the software you're using how to configure it so that the links are written as https:// in the first place so that multiple requests aren't required for every resource on the page. This will result in a speed improvement, and reduce our server usage without requiring that portions of your store be served unsecurely."and this one another "When you go to http://vgamecard.com the page changes in the address bar to https://vgamecard.com and it's because of this code in the .htaccess file:RewriteCond %{HTTP_HOST} ^(www.)?vgamecard.com$RewriteCond %{SERVER_PORT} !^443$RewriteRule ^(.*)$ https://www.vgamecard.com/$1 [L,R]Perhaps someone was helping you with your site but that is what your site does."and when i asked to remove the code they replied "No, the agent who suggested removing the redirect misspoke"!! Link to comment Share on other sites More sharing options...
rocky Posted January 2, 2011 Share Posted January 2, 2011 You should remove that code from the .htaccess file. Then, since you have "Enable SSL" set to "Yes", PrestaShop will automatically use https only for those pages that require it. Link to comment Share on other sites More sharing options...
shahriar Posted January 3, 2011 Author Share Posted January 3, 2011 Hi ,i remove the code RewriteCond %{HTTP_HOST} ^(www.)?vgamecard.com$RewriteCond %{SERVER_PORT} !^443$RewriteRule ^(.*)$ https://www.vgamecard.com/$1 [L,R]then when i type vgamecard.com it showing http://www.vgamecard.com !!!!SSL is Enable as well do you know what is the problem??Regards Link to comment Share on other sites More sharing options...
rocky Posted January 3, 2011 Share Posted January 3, 2011 That's normal. The homepage shouldn't be https. Only the pages dealing with personal information use https. Try going to the contact form or the login form. They should be https. Link to comment Share on other sites More sharing options...
shahriar Posted January 3, 2011 Author Share Posted January 3, 2011 i removed the code from .htasccess but and when i got to login page it show SSL but the message it is not secure page !and from another side web address is with out www. i really don't know what's wrong Link to comment Share on other sites More sharing options...
rocky Posted January 4, 2011 Share Posted January 4, 2011 Try using the following code in your .htaccess file instead: RewriteCond %{http_host} ^vgamecard.com [nc] RewriteRule ^(.*)$ http://www.vgamecard.com/$1 [r=301,nc] This will redirect all URLs with www to www. If you are still getting a warning message, you must have code that is getting content with SSL when it should be using SSL. 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