Forums / Installing on a Linux/Unix Server / Address not found after moving cat to ROOT

Address not found after moving cat to ROOT

Locked

Views: 2,623

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
9 May 2009, 9:41 AM
#1
soul39 avatar

soul39

Zen Follower

Join Date:
Jul 2008
Location:
london
Posts:
167
Plugin Contributions:
0

Address not found after moving cat to ROOT

Hi, all

this is probablay an easy one but i just can not seem to figure it out,
Help.

I have a working catalog at http://www.k-craftteddies.co.uk/store
i moved it to http://www.k-craftteddies.co.uk
but everything is not ok. The main page shows up, but all the links point to http://www.k-craftteddies.co.ukindex.php main_page.
it then says address not found. If i input a / after the co.uk
then the link works ok.
i did not use the 122 tutorial, Should of done!
hers is one of the configs file

*/

// Define the webserver and path parameters
// Main webserver: eg-http://www.your_domain.com -
// HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
// HTTP_CATALOG_SERVER is your Main webserver: eg-http://www.your_domain.com
// HTTPS_CATALOG_SERVER is your Secure webserver: eg-https://www.your_domain.com
/*

  • URLs for your site will be built via:
  • HTTP_SERVER plus DIR_WS_ADMIN or
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_ADMIN or 
    
  • HTTP_SERVER plus DIR_WS_CATALOG or 
    
  • HTTPS_SERVER plus DIR_WS_HTTPS_CATALOG
    
  • ...depending on your system configuration settings
  • If you desire your entire admin to be SSL-protected, make sure you use a "https:" URL for all 4 of the following:
    */
    define('HTTP_SERVER', 'http://www.k-craftteddies.co.uk');
    define('HTTPS_SERVER', 'https://www.k-craftteddies.co.uk');
    define('HTTP_CATALOG_SERVER', 'http://www.k-craftteddies.co.uk');
    define('HTTPS_CATALOG_SERVER', 'https://www.k-craftteddies.co.uk');

// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'false');
define('ENABLE_SSL_ADMIN', 'true');

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

define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'images/');
define('DIR_WS_CATALOG_TEMPLATE', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/templates/');
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_CATALOG_LANGUAGES', HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'includes/languages/');

// * 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_ADMIN', '/home/kcraftte/public_html/*******/');
define('DIR_FS_CATALOG', '/home/kcraftte/public_html');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_CATALOG_TEMPLATES', DIR_FS_CATALOG . 'includes/templates/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', '');
define('DB_SERVER_PASSWORD', '()');
define('DB_DATABASE', '');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, 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', 'none');
define('DIR_FS_SQL_CACHE', '/home/kcraftte/public_html/cache');

// EOF

BTW should i use the default path for the cache?

Thanks in advance for you assistance

Soul39

9 May 2009, 9:48 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Address not found after moving cat to ROOT

Soul39:

define('DIR_WS_CATALOG', '');
...
define('DIR_WS_HTTPS_CATALOG', '');
You can't leave those blank. They must have at least a '/' in them.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 May 2009, 4:09 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,864
Plugin Contributions:
18

Re: Address not found after moving cat to ROOT

/ * 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_ADMIN', '/home/kcraftte/public_html/*******/');
define('DIR_FS_CATALOG', '/home/kcraftte/public_html/');

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

9 May 2009, 6:02 PM
#4
soul39 avatar

soul39

Zen Follower

Join Date:
Jul 2008
Location:
london
Posts:
167
Plugin Contributions:
0

Re: Address not found after moving cat to ROOT

Thank you both for your reply. It worked:clap:

What about the path for the cache, should i change it to" file" and revert to tha default path?
i don't quite understand.
Also do i need to get rid of the shop in the store dir? or can i keep it for testing purposes.

once again, thank you

Soul39

9 May 2009, 6:16 PM
#5
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,864
Plugin Contributions:
18

Re: Address not found after moving cat to ROOT

cache is fine as it is.
Keeping the shop in store might hurt you with search engines if they see both. Google hiding directories from bots.

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

9 May 2009, 7:49 PM
#6
soul39 avatar

soul39

Zen Follower

Join Date:
Jul 2008
Location:
london
Posts:
167
Plugin Contributions:
0

Re: Address not found after moving cat to ROOT

dbltoe,
is there a way to get rid of the store without making a hash of it?
Also i've had a closer look at the config files and notice that the config files have different DIR_FS_CATALOG

for INCLUDES- CONFIGURE:I have-
/home/kcraftte/public.html/store/'
should that not be-
/home/kcraftte/public.html/' since my shop is in the root dir.

FOR ADMIN-INCLUDES-CONFIGURE I have-
/home/kcraftte/public.html'
there should be a / at the end, yes.

Which is correct?

Soul39

9 May 2009, 8:01 PM
#7
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,864
Plugin Contributions:
18

Re: Address not found after moving cat to ROOT

Yes to both

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com