Guest Posted January 24, 2006 Posted January 24, 2006 Hello, I have setup a parked domain on my account. I want to make it so whoever types in either domain will get to the site, and all the links will correspond to the correct URL; example: i go to site.com and it loads the page. All the categories will be site.com/category someone goes to site.co.uk and it loads the page. all the categories will be site.co.uk/category Currently the parked domain will work, but only for the main page. All the categories go to the original url, i suspect it is because it is the 1 configured in the configuration file. How can i get this to work? I have had this working on a VBulletin and PHPBB forum before, but i dont know how to do it in OSC. Any ideas?
♥Vger Posted January 24, 2006 Posted January 24, 2006 Even if you did a 301 Permanent Redirect via .htaccess from the old domain then once they get to the new domain they will see the new domain links once they move from the homepage. The only way of avoiding this is to do a masked redirect using the web forwarding service provided by the company you bought the domain from, and even this may break down when you switch to and from https pages. Vger
Guest Posted January 25, 2006 Posted January 25, 2006 But i dont want to redirect from the old URL, i want both to work as if they are seperate sites but both domains are for the same site. I know the parked domain is working, because i have a phpbb forum on there aswell. dunno if i am allowed to post URL's but it may give you a better idea of what i want to do. www.lushtshirts.com/forums now look at the forum and the links, they are all .com/forums/forum1.html and so on www.lushtshirts.co.uk/forums now look at the forum and links, they are all .co.uk/forums/forum1.html and so on. This is what i am trying to do for OSC, so when you use the .com domain everything is .com and when going to the .co.uk domain everything is .co.uk
chiwawa Posted February 15, 2006 Posted February 15, 2006 Hi, I think you can do this: 1. create a catalog folder for each domain and copy the osC catalog content to each folder. 2. point DocumentRoot for each domain to each catalog folder, i.e. Virtualhost with ServerName www.domain1.com will point to DocumentRoot /var/www/html/catalog_domain1 Virtualhost with ServerName www.domain2.com will point to DocumentRoot /var/www/html/catalog_domain2 3. goto www.domain1.com/install/install.php to configure domain1 point to a database, says, ShopDatabase 4. goto www.domain2.com/install/install.php to configure domain2 point to the same ShopDatabase, but of course, do not create the database content again (uncheck the import catalog database in the 2nd screen) Repeat step 4 for the rest of the domains. I am not 100% sure since I did not test this actually in any server, however I think this should probably work. Hope the input helpful la.
Guest Posted February 15, 2006 Posted February 15, 2006 I suppose if you're using Apache then you could do some RewriteEngine rules to make it work.
AlanR Posted February 15, 2006 Posted February 15, 2006 Hi, I think you can do this: 1. create a catalog folder for each domain and copy the osC catalog content to each folder. 2. point DocumentRoot for each domain to each catalog folder, i.e. Virtualhost with ServerName www.domain1.com will point to DocumentRoot /var/www/html/catalog_domain1 Virtualhost with ServerName www.domain2.com will point to DocumentRoot /var/www/html/catalog_domain2 3. goto www.domain1.com/install/install.php to configure domain1 point to a database, says, ShopDatabase 4. goto www.domain2.com/install/install.php to configure domain2 point to the same ShopDatabase, but of course, do not create the database content again (uncheck the import catalog database in the 2nd screen) Repeat step 4 for the rest of the domains. I am not 100% sure since I did not test this actually in any server, however I think this should probably work. Hope the input helpful la. This is exactly the way to do it and it works fine. Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.