Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

'www' versus 'no www' in url


pfaustino

Recommended Posts

Help, first of all, I don't know if this is appropriate to post my url but this site is not live to the public yet.

 

I think there is something wrong with my online store. Has anyone had this problem before?

 

If you go to

www.techbudget.com

 

Then open in a separate window:

 

techbudget.com

 

Same site, right? Wrong!

 

You'll notice that on the first url, the Product Categories are from another

site. If you click on Huaraches, you'll see that it goes

to that other site.

 

http://d6358014.h44.hostcube216.com/index.php/cPath/21

 

What is going on here? I know I don't have access to that huaraches site's mysql

database but how is www.techbudget.com able to read the categories there.

 

And why does techbudget.com work but www.techbudget.com not work? I've sent in a ticket to my web hosting company and they claim that it is in my PHP code.

 

Patrick

Link to comment
Share on other sites

Post your configure.php file minus private information.

 

 

Your hosting company may have its dns server set up wrong, but you may have an error. Check this first.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Could you please tell me how you got the search engine friendly urls to work.

What the heck does this have to do with the original question? :blink:

Link to comment
Share on other sites

I think you need to change your temp file path to be private for your server

 

Instead of this '/tmp/' you need something more like this '/home/virtual/mysite.com/var/www/tmp/'.

 

Look in Server Info to find your path to document root and make tmp one level below that.

Link to comment
Share on other sites

Here's my includes/local/configure.php

 

<?

define('HTTP_SERVER', 'http://techbudget.com');

define('HTTPS_SERVER', 'https://secure.techbudget.com'); // eg, https://localhost - should not be empty for productive servers

 

define('DIR_FS_DOCUMENT_ROOT', '/hsphere/local/home/username/techbudget.com');

define('DIR_FS_LOGS', '/hsphere/local/home/username/logs/techbudget.com');

 

define('ENABLE_SSL', 1);

// define our database connection

define('DB_SERVER', 'mysql2.darwebhosting.com');

define('DB_SERVER_USERNAME', 'username');

define('DB_SERVER_PASSWORD', 'userpassword');

define('DB_DATABASE', 'dbname');

define('CONFIGURE_STATUS_COMPLETED', 1);

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

So change the tmp dir in admin both cache and sessions.

 

/hsphere/local/home/username/tmp/

That's most likely the solution.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...