Easy_MultipleDomains - Module for Magento 1.4+
, (*1)
, (*2)
What is this ?
This is a module for Magento that helps to handle multiple domains names in a single installation and don't care of store things.
By default, Magento will build all links inside generated html with the default base url. This could be disable by using {{base_url}} tag as value of "Base URL" config parameter but it's not recommanded., (*3)
With this module, you could :
- Create an many domains as you need from System/Configuration admin section
- Configure Package and Template used by each domain
- Disable secure navigation domain by domain : this is usefull if you add a domain which is not handled by your SSL certificate. (For example, an iPad don't ask you if you want to accept a self-signed certificate), (*4)
This module could help you in this cases :
- You have multiples servers, like a Varnish frontend and one or more magento instance behind it; and your are tired to have to bypass varnish every time you have to verify if something is due to cached situation or you want to address specifically one of your servers.
In this situation, you could define a domain per server, setup the list of these domains in the module and Magento will respond to each domain as it do for the default one., (*5)
- You have to make a specific design for a tierce project like a WebApp and the buying process integrated in the app is in fact the one of your website, so you make a design to handle specific behaviors. Then you just have to define a domain used by the app and the module take the relay.
No need to setup a store for it, which could be complex if you are in multilingual context and consume a lot of resource in reindexation for example, for nothing.
How to install it
Use modman
Install modman, go to your source repository then clone the module :, (*6)
modman init {path_to_sources} # if init not already done
modman clone https://github.com/emilient/Easy_MultipleDomains.git
Use composer
Add those lines to your composer.json file :, (*7)
"require": {
"easycom/magento-multipledomains": "dev-master"
}
Or simply tape this line to install the lastest stable version, (*8)
composer require easycom/magento-multipledomains
Or, this line to add the master working version :, (*9)
composer require easycom/magento-multipledomains dev-master
Screenshots
Capture of configuration in backend
br/, (*10)
Capture of frontend with default base_url
br/, (*11)
Capture of frontend with additionnal domain and custom theme configuration
br/, (*12)
Rewrites
This module rewrites two class of Magento Core.
See htdocs/app/code/community/MultipleDomains/Rewrite for details, (*13)
Note that you have to apply a patch for retro-compatibility of the module magento Magento 1.6 and lower., (*14)
Issue Tracker
If you want to post an issue please use github issue tracker : Issue Tracker, (*15)
Contributions
If you want to take a part in improving our extension please create a fork, then feel free to make a pull request., (*16)
Everything needed to develop is in the develop/ folder.
You just need virtualbox, vagrant and composer to get started. See README of develop/ folder, (*17)