Bill H. Posted November 21, 2010 Share Posted November 21, 2010 Working on site and it shows that when i make an order, to goes to correct https: setting, at least the first part;Have shared ssl from oneworldhosting/newworldhosting.Need help in correcting about the end of the redirected link.Example:https://securesite/username/www.sitename.com/order.phpOn google's Chrome browser and IE browser, it shows up with the ..../www.domain.com/order.phpon Firefox, it shows ONLY as ...../domain.com/order.phpHow can i fix this so that it it seen correctly in all three browsers????Now, securesite is a different address than domain name, which when redirecting should NOT have the www. and the dot COM/order.php..Same for login and cart pages.Where do i go to change it so that it does not show the .com when it redirects to the order page: ...../sitename.COM/order.phpAny help would be appreciated.Bill Link to comment Share on other sites More sharing options...
uddhava Posted November 21, 2010 Share Posted November 21, 2010 Did you already apply this to your site :Pick a default URLSearch engines see www.your_site.com and your_site.com as two different URLs.If they find links to both versions, they think it is duplicate data and penalize your ranking.You should pick a default URL (with www or without), and make sure one redirects to the other.You can do this by adding one of the following to your /.htaccess file.Redirect your_site.com to www.yoursite.com: RewriteEngine on (ONLY if it's not already there) RewriteCond %{HTTP_HOST} ^your_site.com RewriteRule ^(.*)$ http://www.yoursite.com/$1 [R=301,L] Redirect www.your_site.com to your_site.com: RewriteEngine on (ONLY if it's not already there) RewriteCond %{HTTP_HOST} ^www.your_site.com$ [NC] RewriteRule ^(.*)$ http://your_site.com/$1 [R=301,L] Link to comment Share on other sites More sharing options...
Bill H. Posted November 21, 2010 Author Share Posted November 21, 2010 Thanks, for your reply, uddhava.Now, when i installed PrestaShop, i entered my host's ssl webdomain address: https://host12.securedomain.com/usersite/That's all i was told by my host that would point to the share ssl when requested.Here's the site i'm testing it on: decorativemerchandise.com . It still shows as:https://host12.webserveralpha.com/~sgarcia/www.decorativemerchandise.com/order.phpI had found the 301 redirect info in the forum and had already placed it in my .htaccess file. Here's how it's structured:=================================================================================# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution# http://www.prestashop.com - http://www.prestashop.com/forums# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([a-z0-9]+)\-([a-z0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2$3.jpg [QSA,L,E]RewriteRule ^([0-9]+)\-([0-9]+)/([_a-zA-Z0-9-]*)\.jpg$ /img/p/$1-$2.jpg [QSA,L,E]RewriteRule ^([0-9]+)(\-[_a-zA-Z0-9-]*)/([_a-zA-Z0-9-]*)\.jpg$ /img/c/$1$2.jpg [QSA,L,E]RewriteRule ^lang-([a-z]{2})/([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$3&isolang;=$1$5 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2&isolang;=$1$4 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$2&isolang;=$1 [QSA,L,E]RewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$2$4 [QSA,L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ /product.php?id_product=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ /cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ /supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ /manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteRule ^lang-([a-z]{2})/(.*)$ /$2?isolang=$1 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpRewriteCond %{http_host} ^domain.com [nc]RewriteRule ^(.*)$ http://host12.webserveralpha.com/~sgarcia/$1 [r=301,nc]=====================================================================================Also tried changing the init.php file as some had recommended in the forum. Still no change. here's what's on line 117 to 137 in my init.php:=====================================================================================/* Server Params */$server_host_ssl = Tools::getHttpHost(false, true);$server_host = str_replace(':'._PS_SSL_PORT_, '',$server_host_ssl);$protocol = 'http://';$protocol_ssl = 'https://host12.webserveralpha.com/~sgarcia/';$link_base_url = $protocol.$server_host;$content_base_url = $protocol.$server_host;if (isset($_SERVER['HTTPS']) AND strtolower($_SERVER['HTTPS']) == 'on'){ $link_base_url = $protocol_ssl.$server_host_ssl; $content_base_url = $protocol_ssl.$server_host_ssl;} elseif (Configuration::get('PS_SSL_ENABLED')){ $link_base_url = $protocol_ssl.$server_host_ssl; if (isset($useSSL) AND $useSSL) $content_base_url = $protocol_ssl.$server_host_ssl;}=====================================================================================Just trying to find out when placing mouse over links for LOG IN and CART it still shows as:https://site.securedomain.com/~user/www.decorativemerchandise.com/cart.php or ....../order.php Any help would be appreciated.thanks.Bill Link to comment Share on other sites More sharing options...
uddhava Posted November 22, 2010 Share Posted November 22, 2010 Prestashop does not work with shared hosting SSL settings. Do you have an dedicated IP?Do you have cpanel/DirectAdmin/other ?? Link to comment Share on other sites More sharing options...
Bill H. Posted November 22, 2010 Author Share Posted November 22, 2010 Yes I have a dedicated ip address.I have cpanel.Hosting co. is going to be offering PrestaShop as one of their software available to its members. So i've asked them and they did not know either, and were referring my question to their technical administrator, which, so far, i've not received a reply .So, then, this means I'm not able to use Prestashop if i am staying with this hosting co. and without having to pay for an ssl certificate.If i were to use one of Paypal options, i guess i would still need ssl since they would need to register at my site and use the my-account file.Too bad i can't use this. Due to financial restrictions, i am not able to spend any money at the moment. I guess i'll have to thinking about returning and continue working on my Zen-Cart option. Link to comment Share on other sites More sharing options...
Bill H. Posted November 24, 2010 Author Share Posted November 24, 2010 Received a reply from my hosting company." We are preparing a more detailed ecommerce page on Prestashop and Magento, but for now it does appear that a dedicated ssl is required. "I guess that answers that! why wasn't this posted loudly in this forum, so people know what to expect if coming from shared ssl hosting place?too bad.oh, and they say they can sell me an ssl certificate for $29.95/year. Link to comment Share on other sites More sharing options...
AnnaEw Posted April 20, 2011 Share Posted April 20, 2011 I used to have Ipage hosting and it's default SSL was a shared certificate and everything worked just fine, enabling SSL... I had to switch hostings (I moved to inmotion) and now if I enable SSL on my prestashop 1.3 it gives me, first, a security error, then a 404 error! Are you sure that if we buy a dedicated SSL this problem will get fixed?Why would this work on Ipage and won't on InMotion? 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