If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / I went from www.AAA.com/dir and got a new domain name for the site.. help

I went from www.AAA.com/dir and got a new domain name for the site.. help

Locked

Started by 2jzfan on 16 May 2007, 12:25 PM · Views: 1,683

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
16 May 2007, 12:25 PM
#1
2jzfan avatar

2jzfan

New Zenner

Join Date:
Jan 2007
Location:
South Florida
Posts:
6
Plugin Contributions:
0

Post #1 by 2jzfan

Long story short I have 1 webhost account and multiple sites running off it.. I own domains and have them point to dirs from this one hosted site. Usually I don't have an issues but for some reason zen doesn't like this.

I started with a clean install of zen to https://www.AAA.com/dir and everything was fine. I then purchased a new domain name for this website https://www.BBB.com. I then set the URL to point to https://www.AAA.com/dir which is normally enough.

The problem with zen is when I click on something it takes me back to https://www.AAA.com/dir instead of continuing on https://www.BBB.com.

I've changed both configure files onlys to lead to a line 40 something error.. :frusty: Now I'm back on the old configure files and am at a loss. Any help would be greatly appreciated as I'd like to continue working on this cart. Thanks.

Justin L.
Zen Cart 1.3.7

16 May 2007, 2:07 PM
#2
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Post #2 by sketchy

Check your CHMOD on those two config files(yoursite/includes/configure.php and yoursite/admin/includes/configure.php). I know my FTP can't override the settings if they are set too tight and won't upload any changes. So, I still had errors and I was pulling my hair out.. wondering why I would see the same on the files without change. I figured out that I had to reset the CHMOD in the host's control panel in order to apply any changes.

If I were you, I'd download both config files to my desktop and open them up in an editor. Then, I'd use the "Find" function to scan the files for settings from the old site. In your case, I'd focus on the old folder name to see if there were still traces to erase. It's very important that you don't fudge the fine details, so take your time.

16 May 2007, 2:50 PM
#3
2jzfan avatar

2jzfan

New Zenner

Join Date:
Jan 2007
Location:
South Florida
Posts:
6
Plugin Contributions:
0

Post #3 by 2jzfan

Sketchy:

Check your CHMOD on those two config files(yoursite/includes/configure.php and yoursite/admin/includes/configure.php). I know my FTP can't override the settings if they are set too tight and won't upload any changes. So, I still had errors and I was pulling my hair out.. wondering why I would see the same on the files without change. I figured out that I had to reset the CHMOD in the host's control panel in order to apply any changes.

If I were you, I'd download both config files to my desktop and open them up in an editor. Then, I'd use the "Find" function to scan the files for settings from the old site. In your case, I'd focus on the old folder name to see if there were still traces to erase. It's very important that you don't fudge the fine details, so take your time.

Thanks for the quick reply, since my post I went over everything again and I'm sure I didn't miss anything. I think my problem is that I don't know what is ok to put where.. I learned about those CHMOD issues when I was trying to secure things.. I was pulling my hair out too :ohmy:!

Because I'm using the same hosted account for both https://www.AAA.com/dir and https://www.BBB.com it complicates things.. It's not just like a simple switch over to a new URL, I still need to point to https://www.AAA.com/dir behind the scenes since everything is still installed there. I was hoping something like this would be in the FAQ or a tutorial somewhere but as you can see from my title I can't really put a name on the situation.

Justin L.
Zen Cart 1.3.7

16 May 2007, 4:38 PM
#4
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Post #4 by sketchy

You're welcome.

Hmm.. I had to do something similar, but in a different context. Perhaps, it's relative all the same. I'll tell my story, then see if it relates and provides insight.

I had to find a free host to install a test store, one that didn't implement forced banner ads which broke the front layout. I found one soon after and they also didn't require a domain name as they supplied a sub domain name. Anyways, they gave me a sub domain with a silly name. I didn't care, so I installed the store there. Anyways, I wanted to experiment with a personal web page and put built a mini site in there too. Then, I wanted a semi-personal sub domain name. I peered into the control panel to see that I was allowed to have more sub domains in which I could put my nickname on half of it and I only limited to a single database. Fine, I made a new sub domain name. I wondered how I was going to move the store over as well as the cart was in that old silly sub domain named root folder. It wasn't very hard, seeing how everything was virtually in one spot. I noticed that I could point my new sub domain name at any folder in my space. No big deal. I changed the old sub domain named folder to my new sub domain name and transferred all the info back into my carts configure files. Worked like a gem. I didn't have to touch the database at all.

That may sound like babble. But, I wonder if you can do similar. You say that all your stuff is in one space and you have two domain names with the same host. So, why can't you point the DNS to the folder where all your files are located and even rename the old folder to something else if you wish?

Maybe, I'm missing something. I don't know much about hosts. There are probably some good folks like Kobra or Merlinpa1969 and perhaps others that know about hosting, who can give you straight insight.

16 May 2007, 4:54 PM
#5
chuckl avatar

chuckl

Totally Zenned

Join Date:
Nov 2006
Location:
Papworth, Cambridgeshire, UK
Posts:
717
Plugin Contributions:
0

Post #5 by chuckl

Sketchy, you are correct, all that is necessary is to edit the DNS at the domain registrar or whatever, and point https://www.BBB.com at https://www.AAA.com/dir, or if AAA.com has a dedicated IP, IPaddress/dir. Can also use mod_rewrite or any number of other options, but the DNS solution is usually the easiest, particularly if the DNS panel allows aliases etc.

16 May 2007, 5:21 PM
#6
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Post #6 by sketchy

Thanks for your input, I thought it was similar to my situation. Although, I forgot about the DNS change at the registrar.. seeing how I just have sub domains only. I'm a free host leech. :(

This should be great news for the person.

16 May 2007, 6:10 PM
#7
2jzfan avatar

2jzfan

New Zenner

Join Date:
Jan 2007
Location:
South Florida
Posts:
6
Plugin Contributions:
0

Post #7 by 2jzfan

Thanks guys but maybe I didn't make it clear in my OP.. That's how I usually do it.. I think that I read somewhere that I need to change things in includes/configure.php and admin/includes/configure.php.. Which I tried and that's when I got the error, then I looked over everything and it was as it should be..

I need a walk through of what to change in the configure files and and why so I can put together my own solution..

One theory I have is using absolute urls instead of letting it pick up from root.. example

https://www.AAA.com/dir1/images/ instead of dir1/images/

Will it allow me to do that? I've been messing with other things for now since the page still functions but I've got to figure something out.. :dontgetit If you'd like to see the page it's the one in my signature. Thanks again.

Justin L.
Zen Cart 1.3.7

16 May 2007, 6:23 PM
#8
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Post #8 by sketchy

You're welcome.

I find this old post to be very handy as a configuration guide.
http://www.zen-cart.com/forum/showthread.php?t=45440

Oh yeah, I kind of figured out about finding your two sites.. I was hungry and there was a bread crumb within the bottom of your posts. :laugh:

I'm sure if those configure files are set right.. it should be smooth sailing. You could always post what you have, minus the secret stuff replaced with "x"s. Then, a lot more people can lend some inquisitive eyeballs your way. If that's too public, you can PM me and we'll swap e-mails, I may be able to find something. Of course, still blot out your private stuff in the files.

16 May 2007, 8:14 PM
#9
2jzfan avatar

2jzfan

New Zenner

Join Date:
Jan 2007
Location:
South Florida
Posts:
6
Plugin Contributions:
0

Post #9 by 2jzfan

Well I got it.. :clap:

While I thought I had done everything right in the configure file before it's clear to me now I should have read everything.. Instead of acting like a know-it-all I would have easily caught this and saved all of us the trouble. It was simple, I forgot to leave the "/" in the configure files after I changed the structure of the DIR_WS_CATALOG and others..

It took two seconds to read over it and realize it.. sorry, I wish I had sat down and read it earlier. The site is working fine now and back on track to opening soon. Thanks again.

Justin L.
Zen Cart 1.3.7

16 May 2007, 8:51 PM
#10
sketchy avatar

sketchy

Totally Zenned

Join Date:
Aug 2006
Location:
Canada
Posts:
940
Plugin Contributions:
2

Post #10 by sketchy

That's fantastic!

Yeah, it's those little things that kill. I know.. I've been there. :laugh: