Forums / Installing on a Linux/Unix Server / having to change domain name to a subdomain AFTER installation

having to change domain name to a subdomain AFTER installation

Views: 1,493

Results 1 to 6 of 6
5 Nov 2012, 6:31 AM
#1
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

having to change domain name to a subdomain AFTER installation

My SSL certificate ran out and when I renewed it they told me I had to create a subdomain (for zencart). I though it already was a subdomain since it appeared to be working the last year.

Still, I am now faced with having to change all instances within the files in the zencart folder of domainname.com.au/zencart to zencart.domainname.com.au.

Can anyone tell me the best way to go about doing this? Thanks.

5 Nov 2012, 6:35 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: having to change domain name to a subdomain AFTER installation

There should be no reason for this
Unless you requested the cert be issued to the subdomain name or they incorrectly requested it in the subdomain name

Zen-Venom Get Bitten

5 Nov 2012, 6:43 AM
#3
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

Re: having to change domain name to a subdomain AFTER installation

True, but before, for some reason, the entire site was issued with the SSL cert. I really only want the zencart subdomain to have it - when someone logs in. So they gave me a choice: whole domain name or subdomain. I chose the latter and now I have this problem.

There must be a single place where the value of HTTP_SERVER etc. is stored?

5 Nov 2012, 10:40 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: having to change domain name to a subdomain AFTER installation

includes/configure.php and admin/includes/configure.php.

5 Nov 2012, 11:46 AM
#5
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: having to change domain name to a subdomain AFTER installation

tpeck:

My SSL certificate ran out and when I renewed it they told me I had to create a subdomain (for zencart).

They did? Why?

tpeck:

I though it already was a subdomain

It is (and I'm saying that without even knowing what you domain is).

tpeck:

since it appeared to be working the last year.

irrelevant.

tpeck:

Still, I am now faced with having to change all instances within the files in the zencart folder of domainname.com.au/zencart to zencart.domainname.com.au.
Can anyone tell me the best way to go about doing this? Thanks.

includes/configure.php & /admin/includes/configure.php

Now, as far as domains and subdomains go.

.au = Top level domain
.com.au = A subdomain of the .au domain OR the top level of the com.au domain
domainname.com.au = A subdomain of the com.au domain OR the top level of the domainname.com.au domain
zencart.domainname.com.au. = A subdomain of the domainname.com.au domain OR the top level domain for zencart.domainname.com.au.
https://www.zencart.domainname.com.au. = A subdomain of the zencart.domainname.com.au domain.

Note: a subdomain with no subdomains is usually a 'host' (actual server) - The functional equivalent of a FQDN (Fully Qualified Domain Name)

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

6 Nov 2012, 5:19 AM
#6
tpeck avatar

tpeck

Zen Follower

Join Date:
Oct 2008
Posts:
197
Plugin Contributions:
0

Re: having to change domain name to a subdomain AFTER installation

Thank you all - I have achieved the desired result.