Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

SSL Help needed.


Guest

Recommended Posts

In the admin panel, I get the message:

You are not protected by a secure SSL connection.

 

Now according to my host the SSL cert is in place? When I try to go to my site through https, it times out. Can anyone shed some light on this please?

 

If you need any further information, please let me know.

Link to comment
Share on other sites

Can I see your site?
I have only just re-installed osCommerce, so there is nothing there yet, but it is www.gforgolf.co.uk. Another problem is, is that by going to that URL, you will get an Apache test page. This is something else that needs changing, somehow. As you can see, I am totally new to osCommerce, but have heard great things about it.

 

The URL for now is:

http://gforgolf.co.uk/catalog/index.php

 

Many thanks.

Link to comment
Share on other sites

That Apache is there becuase of the index.html

If you are going to keep your site at catalog/index.php then you can edit the index.html file and redirect it to catalog/index.php

 

And regarding the SSL issue, can I see the configure.php file?

Link to comment
Share on other sites

That Apache is there becuase of the index.html

If you are going to keep your site at catalog/index.php then you can edit the index.html file and redirect it to catalog/index.php

 

And regarding the SSL issue, can I see the configure.php file?

 

How would I get it, so that the URL would just be: www.gforgolf.co.uk/index.php? I tried moving the index.php to the dir where index html resides, but it did not like that. Please see below the code for configure.php:

 

<?php
/*
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://gforgolf.co.uk'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://gforgolf.co.uk'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'gforgolf.co.uk');
 define('HTTPS_COOKIE_DOMAIN', 'gforgolf.co.uk');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '/catalog/');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/catalog/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', '/vhost/vhost5/g/f/o/gforgolf.co.uk/public_html/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

I have left the database details out of it for security reasons.

Link to comment
Share on other sites

Write this in your index.html

<html>

 

<META HTTP-EQUIV="Refresh"

CONTENT="0; URL=http://gforgolf.co.uk/catalog/index.php">

 

</html>

 

And this in the index.php:(make one in the root at same place as index.html)

 

<?php

header("Location: http://gforgolf.co.uk/catalog/index.php");

?>

 

I would recommend keeping the site at catalog as you can put other things in that way in root

 

And regarding the SSL, your configure.php file seems ok

Which SSL are you using?

Link to comment
Share on other sites

Write this in your index.html

<html>

 

<META HTTP-EQUIV="Refresh"

CONTENT="0; URL=http://gforgolf.co.uk/catalog/index.php">

 

</html>

 

And this in the index.php:(make one in the root at same place as index.html)

 

<?php

header("Location: http://gforgolf.co.uk/catalog/index.php");

?>

 

I would recommend keeping the site at catalog as you can put other things in that way in root

 

And regarding the SSL, your configure.php file seems ok

Which SSL are you using?

 

I believe it is an Equifax cert. Not 100% sure, but I think that is what it is.

Link to comment
Share on other sites

How would I get it, so that the URL would just be: www.gforgolf.co.uk/index.php? I tried moving the index.php to the dir where index html resides, but it did not like that. Please see below the code for configure.php:

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://gforgolf.co.uk'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://gforgolf.co.uk'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

 

[/code]

I have left the database details out of it for security reasons.

Change this
define('HTTP_SERVER', 'http://gforgolf.co.uk');

to this

define('HTTP_SERVER', 'https://gforgolf.co.uk');

If you are not going to use your root for another site, then your shop should be placed there. Playing around with redirects is, at best, sloppy, and at worst, can get you banned. If you set the shop up correctly in the first place, you will have less trouble later on.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Where in the index.php do I add:

 

<?php
header("Location: http://gforgolf.co.uk/catalog/index.php");
?>

 

And do I read correctly that I put a copy of the modified index.php into my root directory on my server?

 

Thanks!

Link to comment
Share on other sites

Change this
define('HTTP_SERVER', 'http://gforgolf.co.uk');

to this

define('HTTP_SERVER', 'https://gforgolf.co.uk');

If you are not going to use your root for another site, then your shop should be placed there. Playing around with redirects is, at best, sloppy, and at worst, can get you banned. If you set the shop up correctly in the first place, you will have less trouble later on.

 

Jack

 

Hi Jack, thanks for the reply. I wish I could place the site on the root, but I am on a shared server, so the root is protected. SO I have to look for an alternative.

 

I will try your suggestion.

Link to comment
Share on other sites

Hi Jack, thanks for the reply. I wish I could place the site on the root, but I am on a shared server, so the root is protected. SO I have to look for an alternative.

 

I will try your suggestion.

There is the root of your site and the root of the server. You cannot move the shop to the root of the server but you can, and should, move it to the root of the site.

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...