Forums / General Questions / site doesnt work

site doesnt work

Locked

Views: 4,749

Results 1 to 20 of 32
This thread is locked. New replies are disabled.
8 Apr 2007, 5:28 PM
#1
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

site doesnt work

Ok, I built a ZenCart site in a folder on my main directory /. called rbackyard. If I type in http://www.rbackyard.net/rbackyard the site works great! When I logged into my hoast and changed the Main directory destonation to /rbackyard and typed in http://www.rbackyard.net the ZenCart site went to crap! It showed the main page all out of porportion with no pictures and if I clicked on anything it gave me a 404error. What did I do wrong? I changed everything back to the way it was and now its pointing to my old site and to see the zen site I have to type in http://www.rbackyard.net/rbackyard

Thanks,
Chad

8 Apr 2007, 6:13 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

Did you change the includes/configure.php and admin/includes/configure.php files to tell them where you had moved the site to?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

8 Apr 2007, 6:24 PM
#3
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: site doesnt work

No, I didnt know I had to do that:blink: How is this done?

Thaks,
Chad

8 Apr 2007, 6:39 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

There's an outline explanation in the FAQ. but the detail will depend on your specific situation

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

8 Apr 2007, 6:46 PM
#5
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: site doesnt work

im not moving my files I am just pointing to a new folder where my zen is located in my hosting plan.

8 Apr 2007, 7:20 PM
#6
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

OK. I see. You still need to change your configure.php files to reflect the change. If you integrate the rbackyard folder into the URL resolution in your hosting plan, you will need to remove it from websystem references in your configure files.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Apr 2007, 11:28 AM
#7
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: site doesnt work

Im sorry but I still dont quite understand. I have read the https://www.zen-cart.com/tutorials/index.php?article=101 and it talks about if I move my forlder "Which im not" and now you saying I just have to modify my config.php file (which is located where) and what do I modify? I just want to change my web host directory to point to that folder (rbackyard) so my Zencart website can be used so if I change the directory to (/rbackyard) what exactly will I have to chang in the ZenCart files:frusty:

Thanks,
Chad

9 Apr 2007, 2:07 PM
#8
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

What do you have currently for lines 15-26 of your includes/configure.php file?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Apr 2007, 2:10 PM
#9
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: site doesnt work

here is lines 14-27

// 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.rbackyard.net');
  define('HTTPS_SERVER', 'https://www.rbackyard.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', '/rbackyard/');
  define('DIR_WS_HTTPS_CATALOG', '/rbackyard/');
9 Apr 2007, 2:37 PM
#10
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

SInce you are making changes to your hosting setup such that any web address starting https://www.rbackyard.net actually goes to https://www.rbackyard.net/rbackyard, you need to stop Zen Cart from then looking for the rbackyard folder that visitors will already be in.

To do this you change these two lines> define('DIR_WS_CATALOG', '/rbackyard/');

define('DIR_WS_HTTPS_CATALOG', '/rbackyard/');
to > define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');in both of your configure.php files.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Apr 2007, 2:40 PM
#11
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: site doesnt work

Thanks a million! Is this the only thing I have to change?

9 Apr 2007, 2:58 PM
#12
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

As long as you do it for both configure.php files, that should be enough. Moving (or in this case re-directing) Zen Carts is one of those things that's really difficult to get your head around, and yet really easy in practise. If you have any further problems with this, come back here and we'll sort them.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Apr 2007, 9:45 PM
#13
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: site doesnt work

KUROI, I did what you said and the site works! But, the admin section doesnt. I log into my admin section with http://www.rbackyard.net/admin/login.php and it show fine but when I put in my pass and user it gives me an 404 error.

Thanks,
Chad

9 Apr 2007, 9:54 PM
#14
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

What do you have in lines 49-52 of your admin/includes/configure.php file?

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Apr 2007, 10:00 PM
#15
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: site doesnt work

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/');
9 Apr 2007, 10:06 PM
#16
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

Apologies, it's actually 41-44 that I need, i.e starting from define('DIR_WS_ADMIN'

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Apr 2007, 10:07 PM
#17
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: site doesnt work

 define('DIR_WS_ADMIN', '/rbackyard/admin/');
  define('DIR_WS_CATALOG', '/');
  define('DIR_WS_HTTPS_ADMIN', '/rbackyard/admin/');
  define('DIR_WS_HTTPS_CATALOG', '/');
9 Apr 2007, 10:11 PM
#18
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

Same problem as before... just remove the bits in red and all should work fine> define('DIR_WS_ADMIN', '/rbackyard/admin/');

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_ADMIN', '/rbackyard/admin/');
define('DIR_WS_HTTPS_CATALOG', '/');

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

9 Apr 2007, 10:15 PM
#19
oxicottin avatar

oxicottin

Zen Follower

Join Date:
Aug 2006
Location:
West Virginia
Posts:
320
Plugin Contributions:
0

Re: site doesnt work

I think im going to cry!! It worked:clap: Is there anything else I need to do?

9 Apr 2007, 10:20 PM
#20
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: site doesnt work

No. Just sit back. Enjoy a cold beer. And revel in your streamlined URL. :smartalec:

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)