Originally Posted by
DrByte
I'm afraid the advice you were given earlier is misleading. The YOURDIRECTORY part should probably be in the DIR_WS_CATALOG and DIR_WS_ADMIN instead of the HTTP_SERVER ... and similarly for the HTTPS entries.
It works like this:
For Catalog addresses, the HTTP_SERVER and DIR_WS_CATALOG are combined to make the non-SSL URL to your site.
And HTTPS_SERVER and DIR_WS_HTTPS_CATALOG are combined to make the SSL URL.
For Admin addresses, the HTTP_SERVER and DIR_WS_ADMIN make the non-SSL URL and the HTTPS_SERVER and DIR_WS_HTTPS_ADMIN make the SSL URL.
(The catalog references in the admin configure.php file operate similarly.)
Basically, the DIR_WS_xxxxx entries would contain the common foldername where your site is stored. In most situations, this is a foldername "under" the "public_html" folder.
If you have a shared-SSL setup, you should put the entire special shared URL in the HTTPS_SERVER line, but leave the "common" folder path in the DIR_WS_xxxxx line.
ie:
HTTPS_SERVER could be "https://your_site.com" and DIR_WS_CATALOG "/zencartfolder/".
or
HTTPS_SERVER could be "https://my_hosts_shared_server/~myusername" and DIR_WS_CATALOG would still be "/zencartfolder/" or DIR_WS_ADMIN would be "/zencartfolder/admin/"
Dr. Byte -
Thanks for your explanation. I have two things that have caused me to bring this back up.
1) I am told the SSL I have is not a shared set up.
2) I haven't implemented something quite right, because while doing general site testing I discovered that when clicking on an order confirmation link sent from my store, the page is not found due to an improper link. The same error occurred elsewhere and was related to my SSL code. What happens is that I'm getting a link in the email that is:
Code:
https://*****.com/catalog/catalog/index.php?main_page=account_history_info&order_id=2496
instead of...
Code:
https://******.com/catalog/index.php?main_page=account_history_info&order_id=2496
Please note that I happened to rename my entire zencart folder to /catalog which is now a funny situation for troubleshooting this. If I need to provide actual link, I will be happy to PM it.
My code now looks like:
Code:
*/
define('HTTP_SERVER', 'http://******.com/catalog');
define('HTTPS_SERVER', 'https://******.com/catalog');
define('HTTP_CATALOG_SERVER', 'http://******.com/catalog');
define('HTTPS_CATALOG_SERVER', 'https://******.com/catalog');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'false');
// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
// these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
define('DIR_WS_ADMIN', '/catalog/admin/');
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_ADMIN', '/catalog/admin/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
And
Code:
define('HTTP_SERVER', 'http://******.com');
define('HTTPS_SERVER', 'https://******.com');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_INCLUDES', 'includes/');
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', DIR_WS_CATALOG . 'pub/');
define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');
define('DIR_WS_PHPBB', '/');
And now if I recall, I got the same problem when I tried to make the Admin area SSL, so fixing this would be greatly appreciated. Thanks in advance!
Bookmarks