If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Linux/Unix Server / Doubling the second part of the URL...

Doubling the second part of the URL...

Locked

Started by insanenerd on 22 Aug 2006, 9:37 PM · Views: 1,358

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
22 Aug 2006, 9:37 PM
#1
insanenerd avatar

insanenerd

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

Post #1 by insanenerd

Okay, I installed Zen Cart and everything seem to go smoothly until this:
I added a few products via admin and then I try to add them to my cart like a casual shopper. When I add them to the cart, I get a 404 error. The same thing happens if I click a product category or write a review. For some reason, the URL it is trying to access is:

https://ssl.perfora.net/catalog.bg4g.net/catalog.bg4g.net/index.php?main_page=product_info&products_id=1

but it SHOULD be:

https://ssl.perfora.net/catalog.bg4g.net/index.php?main_page=product_info&products_id=1

I knowe I am setting up something wrong, but for the life of me, I can not figure it out...:cry:

Anyone have any ideas?

22 Aug 2006, 9:56 PM
#2
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Post #2 by polarduality

Make sure the paths in your configuration files have been setup correctly.

includes/configure.php
admin/includes/configure.php

What is the actual URL of your store? It looks like you're including the subdomain in your path.

Can I see your 1 of your configure.php files?
Just remove the database login details.

Thanks.

22 Aug 2006, 10:05 PM
#3
insanenerd avatar

insanenerd

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

Post #3 by insanenerd

My shop's URL is: https://ssl.perfora.net/catalog.bg4g.net

My Config File says:
?php
/**
*

  • @package Configuration Settings
  • @copyright Copyright 2003-2006 Zen Cart Development Team
  • @copyright Portions Copyright 2003 osCommerce
  • @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
    */

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
define('HTTP_SERVER', 'https://ssl.perfora.net');
define('HTTPS_SERVER', 'https://ssl.perfora.net/catalog.bg4g.net');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', '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_CATALOG', '/catalog.bg4g.net/');
define('DIR_WS_HTTPS_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', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
//the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
define('DIR_FS_CATALOG', '/kunden/homepages/15/d91357064/htdocs/BG4G/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', ''); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', '');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'db'

// The next 2 "defines" are for SQL cache support.
// For SQL_CACHE_METHOD, you can select from: none, database, or file
// If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache
// or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
// ie: /path/to/your/webspace/public_html/zen/cache -- leave no trailing slash
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/kunden/homepages/15/d91357064/htdocs/BG4G/catalog/cache');

?>

Now, correct me if I am wrong, but I believe this code:

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
define('HTTP_SERVER', 'https://ssl.perfora.net');
define('HTTPS_SERVER', 'https://ssl.perfora.net/catalog.bg4g.net');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', '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_CATALOG', '/catalog.bg4g.net/');
define('DIR_WS_HTTPS_CATALOG', '/');

Should be:

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
define('HTTP_SERVER', 'https://ssl.perfora.net/catalog.bg4g.net');
define('HTTPS_SERVER', 'https://ssl.perfora.net/catalog.bg4g.net');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', '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_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

Correct? This needs to be changed in BOTH config files right?

22 Aug 2006, 10:48 PM
#4
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Post #4 by polarduality

If you want users to always acces secure pages then yes that should work.

What was causing the doubling was this:
define('DIR_WS_CATALOG', '/catalog.bg4g.net/');

BTW,
Im going to be honest and tell you that your web address is not very attractive.
If your users want to come back to the store i'm sure they won't remember that address.

22 Aug 2006, 10:52 PM
#5
insanenerd avatar

insanenerd

New Zenner

Join Date:
Aug 2006
Posts:
6
Plugin Contributions:
0

Post #5 by insanenerd

I agree with you:laugh: . The main sites address is https://www.BG4G.net . The shop is just link off of the site. I'm using shared SSL until I get the nerve to lay down a few hundred for a dedicated SSL. Until then, ugly URL for shop :down:

22 Aug 2006, 11:44 PM
#6
polarduality avatar

polarduality

Zen Follower

Join Date:
Mar 2006
Location:
Los Angeles
Posts:
260
Plugin Contributions:
2

Post #6 by polarduality

you can have people go to https://www.bg4g.net and still have them direct to the ssl address when they reach a secure page.

try this:

// Define the webserver and path parameters
// HTTP_SERVER is your Main webserver: eg, http://www.yourdomain.com
// HTTPS_SERVER is your Secure webserver: eg, https://www.yourdomain.com
define('HTTP_SERVER', ''http://www.bg4g.net');
define('HTTPS_SERVER', 'https://ssl.perfora.net/catalog.bg4g.net');

// Use secure webserver for checkout procedure?
define('ENABLE_SSL', '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_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/');