HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Bringing together subdomain and domain sites (http://www.howtoforge.com/forums/showthread.php?t=59642)

Zander1983 19th November 2012 23:59

Bringing together subdomain and domain sites
 
Hi
We have two related websites - one is a digital shop built with Open Cart. The other is a portfolio site, built with the Yii framework. We used isp config 3 to create the sites.

At the moment the shop is at www.shop.ourdomain.com and portfolio site is at www.ourdomain.com. Rather than splitting our traffic, we want all traffic to go to one domain so that our shop will be accessible at www.ourdomain.com/shop/

Any idea how we can achieve this?

falko 21st November 2012 20:09

I think you will have to install the shop in the shop/ subdirectory of the ourdomain.com site and create rewrite rules for the shop.ourdomain.com site to redirect all traffic to ourdomain.com/shop.

Zander1983 25th November 2012 14:32

Thanks for your reply. I have the yii site in /var/www/clients/client0/web10/ with mydomain.com pointed to it, and the open cart shop in /var/www/clients/client0/web11/ with shop.mydomain.com pointed to that

So to install the shop in the shop/ subdirectory of the mydomain.com site, do I need to put it in a subdirectory of /var/www/clients/client0/web10/?

falko 26th November 2012 18:12

Yes, in /var/www/clients/client0/web10/shop/.


All times are GMT +2. The time now is 11:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.