Download: http://dev.cmsmadesimple.org/project/files/852
This module provides support for the use of different domains with one installation of CMSms. You can assign each domain to a page (or page-tree). The module will redirect the domain automatically.
Furthermore the module supports 301 redirects of moved pages (or old urls) to new pages (well, that what the module MovedPages) does.
Last but not least it has a small statistic, how many visitors each domain has.
And - it has support for a development server, so you dont need to change your database before you transfer it.
Ok, here are some guidelines, how to use the module:
1. Enable mod_rewrite
- Open the file "config.php" (in the CMSms root directory) and set the parameter "url_rewriting" to "mod_rewrite" (if it is not already done)
- Create a new file named ".htaccess" (if it not already exists) in the CMSms root directory with (at least) the following content:
Code: Select all
# .htaccess for CMS made simple
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [NE,R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# EOF
Insert the following placeholder at the beginning of each page template:
Code: Select all
{cms_module module='MultiDomains'}
3. Add your domains in the module backend
Go the the module backend (Extensions/MultiDomains) and add your domains and its associated pages.
If you get problems with using this module, please send me a problem description.
Happy MultiDomaining!