Totally Zenned
- Join Date:
- Jun 2009
- Posts:
- 618
- Plugin Contributions:
- 0
Wrong Url coming up
the url is coming up as mydomain.com/testsite/testsite
What do I have wrong in the config files?
Thank you,
autoace
Views: 2,538
Totally Zenned
the url is coming up as mydomain.com/testsite/testsite
What do I have wrong in the config files?
Thank you,
autoace
Black Belt
What do I have wrong in the config files?
How about a look at them???
Past them here and Z-out your admin folder name and DB details
Zen-Venom Get Bitten
Totally Zenned
for the includes:
//Define the webserver and path parameters
//HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
//HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
define('HTTP_SERVER', 'http://www.mydomain.com/testsite');
define('HTTPS_SERVER', 'https://www.mydomain.com/testsite');
//Use secure webserver for checkout procedure?
define('ENABLE_SSL', '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_CATALOG', '/testsite/');//'/'
define('DIR_WS_HTTPS_CATALOG', '/testsite/');//'/'
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', '/xxxxxx/xxxxxxxxx/xxxx_xxxx/testsite/');
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', '');
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'xxxxxx_xxx');
define('DB_SERVER_PASSWORD', 'xxxxxx');
define('DB_DATABASE', 'xxxx_xxxxx');
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', 'file');
define('DIR_FS_SQL_CACHE', '/xxxxxxx/xxxxxxx/xxxxx_xxxxxx/testsite/cache');
and for the admin:
define('HTTP_SERVER', 'https://www.mydomain.com/testsite');/*http*/
define('HTTPS_SERVER', 'https://www.mydomain.com/testsite');
define('HTTP_CATALOG_SERVER', 'https://www.mydomain.com/testsite');/*http*/
define('HTTPS_CATALOG_SERVER', 'https://www.mydomain.com/testsite');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
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', '/testsite/xxxxxx/');
define('DIR_WS_CATALOG', '/testsite/');//'/'
define('DIR_WS_HTTPS_ADMIN', '/testsite/xxxxxx/');
define('DIR_WS_HTTPS_CATALOG', '/testsite/');//'/'
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', '/xxxxxx/xxxxxxx/xxxxx_xxxx/testsite/xxxxxxxxxx/');
define('DIR_FS_CATALOG', '/xxxxxxx/xxxxxxxxxx/xxxxxx_xxxx/testsite/');
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', 'xxxxxxx_xxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxx');
define('DB_DATABASE', 'xxxxxxxxx_xxxxxx');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'xx');
// 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', 'file');
define('DIR_FS_SQL_CACHE', '/xxxxx/xxxxxxxx/xxxxxx_xxxxx/testsite/cache');
Thanks for any help you can provide
Thank you,
autoace
Black Belt
What you have pasted looks OK with the exception of what I highlighted in red
define('DIR_WS_CATALOG', '/testsite/');//'/'
define('DIR_WS_HTTPS_CATALOG', '/testsite/');//'/'
Suspect would be the editor you are using as this is a php file there should be no spurious added anything and there may be others not visible
Zen-Venom Get Bitten
Totally Zenned
ok, good thanks.
I'm not sure what I did, but the url comes up right now (http://www.mydomain.com/testsite) but its not pullling the global stylesheet? I did a 'view page source' and the base href is still coming up as http://www.mydomain.com/testsite/testsite and the stylesheet.css is being called but not displaying?
The testside admin is good.
Any thoughts?
Thank you,
autoace
Black Belt
Where is this site?
Zen-Venom Get Bitten
Totally Zenned
in the /testsite folder
NOT /testsite/testsite
Thank you,
autoace
Black Belt
Where is the url to your site?
Zen-Venom Get Bitten
Totally Zenned
sent via pm
Thank you,
autoace
Black Belt
I do not do Support via PM
If you do not want the spiders to pick it up place ONE space in it like
http: //www.zen-cart.com/
Zen-Venom Get Bitten
Totally Zenned
its not the spiders
my config files are posted, if I display my url....
Thank you,
autoace
Black Belt
my config files are posted, if I display my url....
You X'ed everything out
Zen-Venom Get Bitten
Oba-san
What happens if you fix these files:
define('HTTP_SERVER', 'http://www.mydomain.com');
define('HTTPS_SERVER', 'https://www.mydomain.com');
define('DIR_WS_CATALOG', '/testsite/');
define('DIR_WS_HTTPS_CATALOG', '/testsite/');
define('HTTP_SERVER', 'https://www.mydomain.com');
define('HTTPS_SERVER', 'https://www.mydomain.com');
define('HTTP_CATALOG_SERVER', 'https://www.mydomain.com');
define('HTTPS_CATALOG_SERVER', 'https://www.mydomain.com');
define('DIR_WS_ADMIN', '/testsite/xxxxxx/');
define('DIR_WS_CATALOG', '/testsite/');
define('DIR_WS_HTTPS_ADMIN', '/testsite/xxxxxx/');
define('DIR_WS_HTTPS_CATALOG', '/testsite/');
Linda McGrath
If you have to think ... you haven't been zenned ...
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Totally Zenned
fortunately, everything is fixed, just ran the install script on the testsite and then imported my backup db
Thank you,
autoace
Tell staff why this post should be reviewed.