Zen Cart Logo
Forums / General Questions / how do I use an addon domain?

how do I use an addon domain?

Views: 1,116

Results 1 to 9 of 9
25 Mar 2012, 4:16 PM
#1
b90702098 avatar

b90702098

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

how do I use an addon domain?

hi all,
I've installed my store on my maindomian-XYZ.com.
Recently I added an "add-on" domain (ABC.com) to my EXY.com, i.e. I have a folder "ABC.com" under my publichtml.
And I tried to move my store to ABC.com using method here.
It worked well.
however, when I click on link in the store, it automatically links to "http://www.XYZ.com/ABC.com/...."
I understand that this is how it works but dont really want to show the "XYZ.com" part in the link.
I'm suspecting it is because I still put "XYZ.com" under HTTP_SERVER. however, if I change HTTP_SERVER to ABC.com, it simply just doesnt load.

Please let me know if any way to prevent the XYZ.com part to show up.
thanks so much!

25 Mar 2012, 11:52 PM
#2
ajmn avatar

ajmn

New Zenner

Join Date:
Sep 2010
Posts:
50
Plugin Contributions:
0

Re: how do I use an addon domain?

the way i read your post is that you have sub-domain ABC.com

a parked domain is just a hosted domain without using it for email or as a website, or even a registered domain without hosting.

to achieve what you want https://ABC.com you will have to AddOn the domain to your hosting package
the two sites will then be independant of each other

26 Mar 2012, 2:26 AM
#3
b90702098 avatar

b90702098

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: how do I use an addon domain?

oops i think i typed title wrong. basically I already added ABC.com to my add-on domain. and revise everything accordingly i.e. change all the below to to ABC.com.
◦DIR_WS_CATALOG
◦DIR_WS_HTTPS_CATALOG
◦DIR_FS_CATALOG
◦DIR_FS_SQL_CACHE
◦DIR_WS_ADMIN (in admin)
◦DIR_WS_HTTPS_ADMIN (in admin)
◦DIR_FS_ADMIN (in admin)

but still doesnt work...i use webhostinghub now.

thanks for your help in advance!

26 Mar 2012, 2:27 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: how do I use an addon domain?

HTTP_SERVER must be the Domain Name you want the URL to start with. ie: abc.com
DIR_WSxxxx must be the path RELATIVE to the domain name. If the site is at abc.com directly then just /
DIR
FS_xxxxx must refer to the complete actual path (from root of server drive), ie: /home/xyz.com_accountname/public_html/abc.com_foldername

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

27 Mar 2012, 10:24 AM
#5
b90702098 avatar

b90702098

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: how do I use an addon domain?

thanks Dr byte.
I changed HTTP SERVER to abc.com. and then DIR_WS to abc.com/store (I installed in the "store" folder) then make sure my DIR_FS reflects the whole thing. such changes just disables the whole site and it showed nothing but a black page.
do you mind taking a look at my website and shed some light in terms of how to fix it?

the old website is www.fashionfiestaonline.com
the new website is www.ff-boutique.com

thanks so much.

27 Mar 2012, 3:39 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: how do I use an addon domain?

What was the content of your /includes/configure.php file BEFORE you made these changes? (everything except the db username/pwd)
What is the correct foldername where the new domain's files sit?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

28 Mar 2012, 1:51 AM
#7
b90702098 avatar

b90702098

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: how do I use an addon domain?

DrByte:

What was the content of your /includes/configure.php file BEFORE you made these changes? (everything except the db username/pwd)
What is the correct foldername where the new domain's files sit?

HTTP_SERVER', 'http://www.fashionfiestaonline.com'

'DIR_WS_CATALOG', '/store/'

DIR_WS_HTTPS_CATALOG', '/store/'

'DIR_FS_CATALOG', '/home/accountname/public_html/store/'


the new website is now located at
public_html/FF-Boutique.com/store

thanks for your help!

28 Mar 2012, 4:09 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: how do I use an addon domain?

b90702098:

HTTP_SERVER', 'http://www.fashionfiestaonline.com'

'DIR_WS_CATALOG', '/store/'

DIR_WS_HTTPS_CATALOG', '/store/'

'DIR_FS_CATALOG', '/home/accountname/public_html/store/'


the new website is now located at
public_html/FF-Boutique.com/store

thanks for your help!
So I would start with the following:

HTTP_SERVER', 'http://www.FF-Boutique.com'

HTTPS_SERVER', 'https://www.fashionfiestaonline.com'

'DIR_WS_CATALOG', '/store/'

DIR_WS_HTTPS_CATALOG', '/FF-Boutique/store/'

'DIR_FS_CATALOG', '/home/accountname/public_html/**FF-Boutique.com/**store/'

'DIR_FS_SQL_CACHE', '/home/accountname/public_html/**FF-Boutique.com/**store/cache/'

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

29 Mar 2012, 2:56 AM
#9
b90702098 avatar

b90702098

New Zenner

Join Date:
Feb 2012
Posts:
22
Plugin Contributions:
0

Re: how do I use an addon domain?

it works like magic! thank you so much!!!:clap::clap::clap: