Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 4 of 4
To everyone with 1&1;shared SSL problems [QUICK FIX AVAILABLE]
 
brunomarshall
Guru
 
Avatar
Total Posts:  367
Joined:  2009-08-04
 

Hello,
Nice share thanks for sharing keep it up and keep sharing,
i have 1 doubt that will affect the stores i mean multiple stores ??

 
Magento Community Magento Community
Magento Community
Magento Community
 
Novusweb
Sr. Member
 
Avatar
Total Posts:  89
Joined:  2009-05-06
Texas
 

After reading through all these posts and trying everything (to no avail), the solution for me was quite simple.

First, our situation:

3 Websites, each with one or more Store views. Website 1 has 6 Store Views, each with their own URL (e.g. http://www.store1.com, http://www.store2.com, etc.). Website 2 has 2 Store Views, also with different URLs (e.g., http://www.store7.com, http://www.store8.com), and so forth.

We wanted all stores to share the same SSL certificate assigned to the one Magento installation.

We set the Secure Base URL at the Default Configuration level for “https://www.securedomain.com”

Next, set “Add Store Code to Urls” to “Yes.” Of course, all your URLs will include the store code, but what a small price to pay.

That’s it! Works perfectly for us.

This assumes your already successful at setting up for multiple domains/stores/etc.

 
Magento Community Magento Community
Magento Community
Magento Community
 
askthemissus
Jr. Member
 
Total Posts:  3
Joined:  2011-05-26
 

@FireWire2

Thanks, simply adding the index.php/ on the Base Link URL in the backend did it the trick for me!

FireWire2 - 26 January 2010 05:21 PM

David

Here is what I did:

Back end:

under Configuration/Web
Search Engines Optimization
- Use Web Server Rewrites: YES

Unsecure
- Base URL:  http://www.datoptic.com/store/
... the rest does not change

Secure
- Base URL:  https://secure79.inmotionhosting.com/~datopt5/store/
- Base Link URL:  https://secure79.inmotionhosting.com/~datopt5/store/index.php/
... the rest does not change

note: index.php one with it and other without

htaccess file

change:

RewriteBase /
....
RewriteRule .* store/index.php [L]

Now

a product page will be like:
http://www.datoptic.com/store/storage/esata-sata-enclosure.html
but when check-out with share SSL:
https://secure79.inmotionhosting.com/~datopt5/store/index.php/checkout/onepage/....
 
Magento Community Magento Community
Magento Community
Magento Community
 
marcelrs
Jr. Member
 
Total Posts:  7
Joined:  2011-08-19
 

Hello Everybody. If you have a single store and are trying to use shared SSL and getting 404 error (page not found), try what our friend FireWire2 recommended: this way you won´t even change Magento files. It´s all through admin panel and works perfectly. I have seen other users saying the same. Here are the steps:

Back end:
under Configuration/Web
Search Engines Optimization
- Use Web Server Rewrites: YES

Unsecure
- Base URL:  http://www.example.com/ (site regular URL)
... the rest does not change

Secure
- Base URL:  https://secure79.inmotionhosting.com/~datopt5/ (your SSL URL might be something like that)
- Base Link URL:  https://secure79.inmotionhosting.com/~datopt5/index.php/ (here is the secret: use “/index.php” at the end)
... the rest does not change

Note: secure base url does not have “index.php” at the end and the base link URL has!

Well, that worked just fine for me. I got Magento 1.6.1 and shared SSL from Hostgator. Hope it works for you too!

 
Magento Community Magento Community
Magento Community
Magento Community
 
roknrod12
Member
 
Avatar
Total Posts:  70
Joined:  2010-08-31
 

Worked for me with Bluehost shared SSL.  I was overlooking the difference between the Base URL and the Base Link URL.  Once I got those 2 straight it worked.  Using CE v1.6.1.

 
Magento Community Magento Community
Magento Community
Magento Community
 
bm_eu
Jr. Member
 
Total Posts:  1
Joined:  2012-02-22
 

I’m having a slight variation on this problem.

Changing the “Base Link URL” fixes the frontend and everything works fine there but kills the backend, when using SSL, because it ads an additional index.php becoming:

https://shared.server.net/~mylogin/index.php/index.php/admin/whatever...

Is there anything I can do to fix this and use SSL on the backend?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Johny Blare
Jr. Member
 
Avatar
Total Posts:  5
Joined:  2011-08-19
 

@Lior,

HI,

I am having 1and1 dedicated managed server hosting. and i also setup the SSL Certificate on server. and also changed in Magento Community Edition in admin panel for secure url.

Although it works with all urls in frontend, except customer login, checkout, wishlist, etc pages are not loading and browser says that “The Page is not redirecting properly”.

Please advice..!!

Thanks.

 
Magento Community Magento Community
Magento Community
Magento Community
 
latinostar
Sr. Member
 
Total Posts:  99
Joined:  2009-09-10
 
Johny Blare - 05 May 2012 04:18 AM

@Lior,

HI,

I am having 1and1 dedicated managed server hosting. and i also setup the SSL Certificate on server. and also changed in Magento Community Edition in admin panel for secure url.

Although it works with all urls in frontend, except customer login, checkout, wishlist, etc pages are not loading and browser says that “The Page is not redirecting properly”.

Please advice..!!

Thanks.

Did you resolve it?

 
Magento Community Magento Community
Magento Community
Magento Community
 
technosoul
Jr. Member
 
Total Posts:  1
Joined:  2011-07-10
 

Back end:
under Configuration/Web
Search Engines Optimization
- Use Web Server Rewrites: YES

Unsecure
- Base URL:  http://www.example.com/ (site regular URL)
... the rest does not change

Secure
- Base URL:  https://secure79.inmotionhosting.com/~datopt5/ (your SSL URL might be something like that)
- Base Link URL:  https://secure79.inmotionhosting.com/~datopt5/index.php/ (here is the secret: use “/index.php” at the end)
... the rest does not change

Note: secure base url does not have “index.php” at the end and the base link URL has!

It doesn’t seem to work with Magento 1.7.0.2 - does it? It always redirects me to the starting page, so I can’t even go to the checkout. Looks like an error redirect to me. As soon as I turn the secure urls off in the backend I can continue to checkout.

 
Magento Community Magento Community
Magento Community
Magento Community
 
knieper
Jr. Member
 
Total Posts:  1
Joined:  2013-06-13
 
technosoul - 23 January 2013 02:21 AM


Back end:
under Configuration/Web
Search Engines Optimization
- Use Web Server Rewrites: YES

Unsecure
- Base URL:  http://www.example.com/ (site regular URL)
... the rest does not change

Secure
- Base URL:  https://secure79.inmotionhosting.com/~datopt5/ (your SSL URL might be something like that)
- Base Link URL:  https://secure79.inmotionhosting.com/~datopt5/index.php/ (here is the secret: use “/index.php” at the end)
... the rest does not change

Note: secure base url does not have “index.php” at the end and the base link URL has!

It doesn’t seem to work with Magento 1.7.0.2 - does it? It always redirects me to the starting page, so I can’t even go to the checkout. Looks like an error redirect to me. As soon as I turn the secure urls off in the backend I can continue to checkout.

Is there any working configuration known vor CE Magento 1.7.0.2? Tried almost every configuration and contacted my provider as well without any achievement.
Perhaps anybody out there give me an advise..

 
Magento Community Magento Community
Magento Community
Magento Community
 
pradeep_kumar67
Sr. Member
 
Avatar
Total Posts:  160
Joined:  2010-06-24
Bangalore
 

Hi All,

i fixed the issue

1st please print the $_SERVER in index.php (make sure your in https )

i’e

echo '<pre>';
print_r($_SERVER); exit;

and please check HTTP_X_FORWARDED_PROTO is there or not

if there is HTTP_X_FORWARDED_PROT exists in $_SERVER

then use this code

/* ssl mode */
if(isset($_SERVER['HTTP_X_FORWARDED_PROTO'])
 && 
$_SERVER['HTTP_X_FORWARDED_PROTO'== 443{
    $_SERVER[
'HTTPS']   'on';
    
$_SERVER['SERVER_PORT'443;
}
else{
    $_SERVER[
'HTTPS']   'off';
    
$_SERVER['SERVER_PORT'80;
}

else use this code

/* ssl mode */
if(isset($_SERVER['HTTPS'])
 && 
$_SERVER['HTTPS'== 1{
    $_SERVER[
'HTTPS']  'on';
    
$_SERVER['SERVER_PORT'443;
    
$_SERVER['HTTP_X_FORWARDED_PROTO'443;
}
else{
    $_SERVER[
'HTTPS']   'off';
    
$_SERVER['SERVER_PORT'80;
}

just we have to make sure this to value should be there in server variable

$_SERVER['SERVER_PORT'443;
    
$_SERVER['HTTP_X_FORWARDED_PROTO'443;
 
Magento Community Magento Community
Magento Community
Magento Community
 
rankingj
Jr. Member
 
Total Posts:  2
Joined:  2014-01-19
 

To use a shared SSL with magento 1.8 you only need to change the
unsecure base url to something like: http://yourstore.com/
and the secure base url to something like: https://yourstore.com/
of course using your own actual url.

Please note the only difference between the two urls is that the unsecure url starts with “http” and the secure url starts with “httpS”

Do not change the Base Link URL’s just the Base URL

if you change anything else be carefully because magento may lock you out of your admin panel.

Using the above my Magento 1.8 onepagecheckout is now SSL but my product pages are not.

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 4 of 4