Strict Standards: Declaration of action_plugin_dlcount::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/dlcount/action.php on line 14

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/indexmenu/action.php on line 169

Strict Standards: Declaration of action_plugin_ipban::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/ipban/action.php on line 67

Strict Standards: Declaration of action_plugin_loglog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/loglog/action.php on line 82

Strict Standards: Declaration of action_plugin_navi::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/navi/action.php on line 46

Strict Standards: Declaration of action_plugin_uparrow::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/uparrow/action.php on line 69

Strict Standards: Declaration of action_plugin_userspagecreate::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/userspagecreate/action.php on line 97

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /home/www/wiki/inc/cache.php on line 289

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/auth.php on line 312

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/actions.php on line 154
phpwcms with multiple domains [phpwcms-HowTo:wiki]

Strict Standards: Declaration of syntax_plugin_code::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/code/syntax.php on line 41

Strict Standards: Declaration of syntax_plugin_tip::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/tip/syntax.php on line 38

phpwcms with multiple domains

FIXME Translate

From Jörg Alblecht Blog:

“The phpwcms CMS doen't support more than one domain at a first glance. If you install it into a webspace which is connected to more than one domain the same content will be displayed for every single domain per default. But if you have different website content for different languages or countries you certainly would like to schow the appropriate content for a certain domain - english content with a com-domain, german one with a de-domain. You'll need a starting point definition and an entry page.

Here comes a little workaround into the game:

1. First of all you'll like to set up a file which will contain some code to link the different languages into the different domains. Let's name it redirect.php.
2. This redirect.php will contain the following code (you'll have to adapt it and it can be extented with as many domains as needed.”

    <?php
 
        if ( $_SERVER[`SERVER_NAME`] == `www.domain1.tld` ) {
            header( "HTTP/1.1 301 Moved Permanently" );
            header(`Location: http://`. $_SERVER[`SERVER_NAME`] .`/index.php?content1`);
        }
 
        if ( $_SERVER[`SERVER_NAME`] == `www.domain2.tld` ) {
            header( "HTTP/1.1 301 Moved Permanently" );
            header(`Location: http://`. $_SERVER[`SERVER_NAME`] .`/index.php?content2`);
        }
 
    ?>


3. To make sure that “redirect.php” is executed before “index.php” you will add the following line of code to your ”.htaccess”:

DirectoryIndex redirect.php index.php


That's all so far!


Quote of Mittwoch, 05.03.2008 aus: Jörg Alblecht Blog


Knut Heermann (flip-flop) 2011/03/13 08:57

english/other-enhancements/multiple-domains.txt · Last modified: 2011/07/22 18:58 by Claus
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 79