Jump to content

newbie - cubecart3 with subdomains


Guest iamjohngalt

Recommended Posts

Guest iamjohngalt

I have installed cubecart 3.0.1 in a directory under my primary domain. After working with it that way for a few days, I registered a new domain and set up this new domain as an addon domain/and subdomain with my hosting account. (I also set up the DNS to address the new domain name on this server and that is working.)

Two problems...

1) when I access the store with the newdomain.com it sometimes displays the address as newdomain.olddomain.com/store. (This is not acceptable.) Other times it shows newdomain.com/store. I have another cubecart store (on a different server) I am testing and it consistently displays the wrong thing, i.e., newdomain.olddomain.com/store (also unacceptable)

I tried to find a setting to fix this but did not. I tried editing the global inc.php file but what I tried did not work. What I want to see is newdomain.com/store.

I could use some help on this.

2) None of the images uploaded for sub-categories will display at all when I access the site using the newdomain.com address. I have no idea where to fix this. The filenames on the SQL database do not include any directory or site related data so obviously that is not the answer. I need some help on this one also.

I did search for previous postings on this but did not find any helpful posts.

Thanks in advance. I will help you when I can ;^)

Link to comment
Share on other sites

Guest iamjohngalt

One more thing.

I cannot use the admin using the newdomain.com/store/admin at all.

When I try to login to the admin using the newdomain.com/store/admin, it changes the address to newdomain.olddomain.com/store/admin and asks for user and password, then it brings up a text only display of the admin page. When I try any of the links all I get is a Not Found error page.

[THIS POST WAS MODIFIED BY POSTER TO CORRECT ERRORS ]

Link to comment
Share on other sites

Guest gpgarrettboast

heh. I'm having nearly the same exact problem right now... But to get your images working:

<?php

$glob['rootDir'] = '/your/root/store/directory/';

$glob['rootRel'] = '';   <-You may be able to leave this blank

$glob['storeURL'] = 'http://new.domain.here/';

?>

This fixed all of my images, but it did the same thing to my admin CP, so I'm not really sure.

Link to comment
Share on other sites

Guest iamjohngalt

When you mention ...

$glob['rootDir'] = '/your/root/store/directory/';

Do you mean that for www.newdomain.com/store the entry should be:

$glob['rootDir'] = '/store/';

or does it need the entire directory path, e.g.,

'/home/username/public_html/domainname/store'

(Perhaps this is clear and obvious to a more proficient linux and PHP programmer, but unfortunately it is not clear to me... yet.)

My intution is that this is where the problem lies but I have limited knowledge at present.

Link to comment
Share on other sites

Guest iamjohngalt

OK, here is more detail.

I changed the global inc.php file so that the pertinent part looks like this:

$glob['rootDir'] = '/home/username/public_html/newdomain/store';

$glob['rootRel'] = '/store/';

$glob['storeURL'] = 'http://www.newdomain.com/store';

(I modeled this on the form of the original file created on the install.)

The current result is that the store now opens correctly, displays the images for subcategories.

When the address entered is in the form:

newdomain.com/store/

it displays what I want in the address bar, that is,

newdomain.com/store/index.php etc etc

however, if I leave off the trailing slash like this:

newdomain.com/store

then the display on the address line is unacceptable like

newdomain.olddomain.com/store/

This same thing occurs when I try to get into the admin area, too.

So can anyone tell me what causes this and how to fix this?

Link to comment
Share on other sites

Guest iamjohngalt

convict, could you be a bit more specific on that?

I am guessing you are saying its a problem outside of cubecart.

If so, can you point out a resource that describes the solution online and I will try to fix it?

(This is a hosted account so I do not have control of the entire machine, but if its possible to fix via cpanel I will certainly try.)

Link to comment
Share on other sites

Sure, problem is outside of cubecart.

I know nothing how the addon/subdomain management was made.

Where the shop physically resides on? Both of domains are hosted on the same server?

Why did you set newdomain up as a subdomain of olddomain?

:mellow:

Some hosting companies provides simple redirection ... e.g. you have one domain and some web files....then you have second domain and only you want, is using two domain names for those only web files - thats your case? huh....

I am NOT a cPanel user :o

Link to comment
Share on other sites

Guest iamjohngalt

Thanks, convict.

I contacted the hosting support and got it fixed.

They said some DNS settings were changed.

I cleared my browser cache and it's working correctly.

Thanks for your help and best wishes.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...