Redireting site

Locked

Views: 960

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
25 Jan 2010, 9:20 PM
#1
mhakiwa avatar

mhakiwa

New Zenner

Join Date:
Sep 2008
Posts:
45
Plugin Contributions:
0

Redireting site

Hi
Please can someone tell me how to redirect my site, I recently had to reinstall and and installed zencart to /public_html and now it comes up as https://www.mystore.com/mystore
I would like it to be https://www.mystore.com/

at the moment I am getting this error: -

The requested URL /design21worksnddbc.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

How can I make it redirect, I have built it up using the oversides and made my own template up.

Please can you help?

25 Jan 2010, 10:09 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Redireting site

Edit your 2 configure.php files to correct it from being in a folder before
https://www.zen-cart.com/tutorials/index.php?article=122

Zen-Venom Get Bitten

26 Jan 2010, 7:59 AM
#3
mhakiwa avatar

mhakiwa

New Zenner

Join Date:
Sep 2008
Posts:
45
Plugin Contributions:
0

Re: Redireting site

I have moved the site to /home directory, changed the /includes/config files are directed, also downloaded the fix cache key to make sure its all running properly, when I type in https://www.design21works.com/fix_cache_key.php I get a blank screen
I have a copy of the site both under the home directory and public_html

All I simply want is for the site to direct www/design21works.com instead of https://www.design21works.com/design21

I know its something simple but its still going over my head. I did not load my site up correctly and instead of using the overide facility I just amended the classic folder and then wondered why images etc were not displaying correctly.

School of hard knocks I did download the manual from lulu which I have found soo invaluable, just this little glitch.

26 Jan 2010, 8:10 AM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Redireting site

I have a copy of the site both under the home directory and public_html
A terminology issue??
These normally mean the same thing
Some servers have /home while others have /public_html
Post your /includes/configure.php file BUT insure that you X out DB name and pass - Use the<> code tags

Zen-Venom Get Bitten

26 Jan 2010, 8:40 AM
#5
mhakiwa avatar

mhakiwa

New Zenner

Join Date:
Sep 2008
Posts:
45
Plugin Contributions:
0

Re: Redireting site

HI thank you
I am still not getting what you are saying and I know its obvious, but its gone over my head. here is my includes/configure.php

// 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://design21works.com');
define('HTTPS_SERVER', 'https://design21works.com');

// 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', '/design21works/');
define('DIR_WS_HTTPS_CATALOG', '/design21works/');

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', '/home/design21/public_html/design21works/');

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', 'localhost');
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '
');
define('DB_DATABASE', 'design21_zc1');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

// 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', 'database');
define('DIR_FS_SQL_CACHE', '/home/design21/public_html/design21works/cache');

// EOF

[
I need to get my head around this or I will forever that this issue, slowly overcoming my mortal fear of html at a great cost in time and effort. Thank you Kobra for you kind assistance.

26 Jan 2010, 8:50 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Redireting site

Myself:

Post your /includes/configure.php file BUT insure that you X out DB name and pass - Use the<> code tags
You might ask a DEV to edit your DB details out of your posting
All I simply want is for the site to direct www/design21works.com instead of https://www.design21works.com/design21
See the changes in red

// 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://design21works.com');
define('HTTPS_SERVER', 'https://design21works.com');

// 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', '/');

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', '/home/design21/public_html/');

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', 'localhost');
define('DB_SERVER_USERNAME', 'XXXXXXXXXXX');
define('DB_SERVER_PASSWORD', 'XXXXXXXXXX');
define('DB_DATABASE', 'XXXXXXXXXX');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // use 'db' for best support, or '' for file-based storage

// 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', 'database');
define('DIR_FS_SQL_CACHE', '/home/design21/public_html/cache');

Cotrrect you admin file also

Zen-Venom Get Bitten