Joomla SEO
How to configure Joomla to open by more than one domain?
Main Menu
| Home |
| Joomla Install |
| Administration |
| Joomla Components |
| Joomla Modules |
| Joomla Bots |
| Joomla SEO |
| Hacks |
|
|
|
| How to configure Joomla to open by more than one domain? |
|
|
|
|
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
Point all those domain names to your account! Doing that may need a help from your hosting company, or you may be able to do it yourself. Most hosting packages have the "Addon Domains" or "Parked Domains" menu item/applet on your hosting account to do that - find them and use them, or ask help form your hoster and/or from some experts Then grab your favourite tool and let's hack the configuration.php file! Oh, yea, make a backup first, just in case! If you have Joomla 1.0.* find the following line :
$mosConfig_live_site = 'http://www.mydomain.info';
And replace it with this one:
$mosConfig_live_site = 'http://'.$_SERVER['HTTP_HOST'];
In case your Joomla is in a subdirectory you have to specify the name of the subdirectory:
$mosConfig_live_site = 'http://'.$_SERVER['HTTP_HOST'].'/directoryname';
Note to substitute directoryname with the the directory name in which Joomla resides. That's it, enjoy the solution. PS. And what you need to do if you have Joomla 1.5.*? Nothing. That one is clever enough to handle all domains pointed to your account! plugin by VivoCiti.com
|
| Next > |
|---|
|
|
|




.









