Zen Cart Logo
Forums / Basic Configuration / Root or subdirectory?

Root or subdirectory?

Views: 4,396

Results 21 to 28 of 28
13 Aug 2014, 11:17 PM
#21
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Root or subdirectory?

robbie269:

Just tried the same thing but as an add-on domain. And it worked! Now my problem is, do I really want my site to go down while I swap it all over???

So I was going to askif you had cleared your cache regarding the earlier attempt but it looks like you may have found a way to make it work. What I would do is download a copy of the configure.php file for the store. Modify it locally, then set the store side to be editable. Find a convenient time to momentarily take the site down. Adjust the cpanel setting and upload the new configure.php. Reset the permissions on the store's configure.php file and then go make the necessary changes to the admin side. Down time as lat9 said should be minimal.

14 Aug 2014, 1:12 AM
#22
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: Root or subdirectory?

My next question with add-on domains is how does that affect my SSL certificate? Especially if I swap things like the primary domain to an add-on domain.

14 Aug 2014, 1:25 AM
#23
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Root or subdirectory?

robbie269:

My next question with add-on domains is how does that affect my SSL certificate? Especially if I swap things like the primary domain to an add-on domain.

While lat9 or someone else may be able to provide a direct answer, I would suggest speaking with the host about it, they may need to associate it with a different directory, but it is afterall still the same uri just found somewhere different (under the covers). :) you may be able to figure out the specifics from the host's site, or momentarily try it and see if 1) it works or 2) you get a certificate error. Again, finding an opportune time to try it, and possibly posting a temporary outage for the site. (15-30 minutes should do.)I'm thinking that it will not be an issue if it isn't one now.

14 Aug 2014, 11:19 PM
#24
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: Root or subdirectory?

Well I have done the swap this morning to an addon domain. Problem with SSL certificate at first but my hosting company has sorted it out.
All good so far.

15 Aug 2014, 12:10 PM
#25
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Root or subdirectory?

Congratulations! I'm glad that it's working for you. When it comes time to upgrade, you can follow the procedure I outlined above to make your transition easy.

15 Aug 2014, 11:30 PM
#26
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: Root or subdirectory?

lat9:

Congratulations! I'm glad that it's working for you. When it comes time to upgrade, you can follow the procedure I outlined above to make your transition easy.
Thanks Lat9. Regarding upgrading: will the addon domain care if I rename its subdirectory from say "shop" to "shop_old" when I am about to upgrade. ie when I finally change the "test" directory to "shop" will I have to relink the addon domain and also setup emails again. Does that make sense?

16 Aug 2014, 12:58 PM
#27
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,065
Plugin Contributions:
56

Re: Root or subdirectory?

From what I've seen, once you've setup the add-on domain to "point" to a specific directory you're finished. Performing the directory-swap shouldn't affect the site's operation (once you've completed the process of renaming shop to shop_old and then shop_new to shop).

16 Aug 2014, 11:16 PM
#28
robbie269 avatar

robbie269

Zen Follower

Join Date:
Feb 2010
Location:
New South Wales, Australia
Posts:
228
Plugin Contributions:
0

Re: Root or subdirectory?

lat9:

From what I've seen, once you've setup the add-on domain to "point" to a specific directory you're finished. Performing the directory-swap shouldn't affect the site's operation (once you've completed the process of renaming shop to shop_old and then shop_new to shop).
That's what I'm hoping!