Create a PHP Header Redirect, for multiple domains with specific domain redirects for custom templates

Solution for single webspace, with different domains, 1 joomla install and depending on the user landing domain, redirects to a different default page. Past following PHP code after the <head> of your joomla template. To assign another domain, just copy/past the "if" function and edit it with the values of the other domain in the same fashion. Further to setup the template views, you will have to assign different module item/link alias and setup template views within the joomla! template manager. The alias setting is needed when you use SEF settings.

<?php
$domain = $_SERVER["SERVER_NAME"];
$requri = $_SERVER['REQUEST_URI'];
if (($domain == "www.example.de" && $requri == "/" ||
$domain == "example.de")) {
header("location: http://www.example.de/index.php?option=com_content&view=article&id=6");
}
?>

http://docs.joomla.org/Multiple_Domains_and_Web_Sites_in_a_single_Joomla!_installation

blog comments powered by Disqus

If you do not see content of CU3ER slider here try to enable JavaScript and reload the page