oscommer1 Posted January 9, 2019 Share Posted January 9, 2019 I notice config files have domain name. Can you point/redirect another domain name to a cart? Link to comment Share on other sites More sharing options...
♥raiwa Posted January 9, 2019 Share Posted January 9, 2019 This is not OsCommerce specific and do not require any modification in the OsCommerce configure files. You can do this in the main/root .htaccess file of the domain from where you wants to redirect. Google for something like ".htaccess redirect to another domain". About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 10, 2019 Share Posted January 10, 2019 Also, if your hosts control panel has the option (most do, I think), you can add the redirect there. But however you do it, the other domain has to be pointing to the server of the main domain so you will have to make a change at the registrar if that is not the case. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
MrPhil Posted January 10, 2019 Share Posted January 10, 2019 The domain names in the configure.php files are used for generating outbound links from the store, and perhaps a few miscellaneous items such as canonical tags. They do not change what name the server it's running on sees or uses. If you have a store running under a given domain name, and you want to change that domain, you need not only to change the configure.php entries to the new domain, but also register the new domain and point it to the server (it could be on a new server). If you are looking to redirect (point) another domain to this cart (as an alias?), you can certainly do a redirect from wherever the other domain is hosted (a redirect within .htaccess is one way). However, you will have some problems, as the store will still be hard coded to the first domain's name, and produce links, etc. under that name. If you are looking to change the name of the store, but allow it to be accessed under an old name, that can be done, too. Perhaps you could explain in detail what effect you're looking to achieve here? Link to comment Share on other sites More sharing options...
oscommer1 Posted January 10, 2019 Author Share Posted January 10, 2019 Thanks. Basically just trying to have cart accessed by multiple names. Just wasn't sure if cart would be confused by a different domain name access using forwarding from registrar. I have seen some software get confused with URL rewrites etc. Link to comment Share on other sites More sharing options...
ArtcoInc Posted January 10, 2019 Share Posted January 10, 2019 @oscommer1 If you want Site1.com, Site2.com. and Site3.com to all point to Cart99.com, that's easy. But, once the customer is in Cart99.com, it will say that they are in Cart99.com. If you want Site1.com, Site2.com, and Site3.com to all point to a common cart, but you want the customer to think that they are still at the original site, that's a different situation. So, what is it you want? M Link to comment Share on other sites More sharing options...
MrPhil Posted January 11, 2019 Share Posted January 11, 2019 If it's possible one way or another to have several names pointing to the same site, where %{HTTP_HOST} is various strings, it might be interesting to feed %{HTTP_HOST} to the program (as URL Query String). The value would be used to override the domain name used in configure.php settings, making it look like a number of domains are hosting this store. Has anyone seen something like that? Offerings might be adjusted depending on "who" is hosting the store. I would be worried that some bad actor could point a random domain to your store and somehow hijack it. That might be prevented by having a hard coded whitelist of domains allowed to do this. Link to comment Share on other sites More sharing options...
ArtcoInc Posted January 11, 2019 Share Posted January 11, 2019 @MrPhil Over the years, I've seen at least one person on here who has had several shops share a common admin / database. I've considered it myself more than once. M Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.