MirageLab :: CMS

FAQs

CMS
Browse in : All > FAQs > CMS

How do I set up dynamic subdomains for my users? by Chad Kraeft

What do I need to put in my .htaccess file in order to redirect username based subdomain URL's to dynamic pages with the username passed as a variable?

1) A RewriteCond applies only to the single RewriteRule following it. 2) If [R=30x] isused, a canonical URL should be provided. 3) Never use [R=302] unless the move is Temporary, and you have a planned date to remove the redirect. 4) A space is required between "}" and "!". Posting on this board removes them. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.domain\.nl RewriteRule ^([0-9]+)$ http://%{HTTP_HOST}/$1/ [R=301,L] RewriteCond %{HTTP_HOST} !^www\.domain\.nl RewriteRule ^([0-9]+)/$ /do.php?page=$1 [L] [or] RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.domains\.com$ [NC] RewriteCond %{HTTP_HOST} ^([a-z0-9]+)\.domain\.com$ [NC] RewriteRule ^/(.*)$ site.php?url=%1&path=$1 [L,QSA] [or] RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.firesafetymart\.com$ [NC] RewriteCond %{HTTP_HOST} ^([a-zA-Z0-9]+)\.firesafetymart\.com$ [NC] RewriteCond %{REQUEST_URI} !^/?site\.php$ RewriteRule .? site.php?url=%1&path=%{REQUEST_URI} [L,QSA]

Back to top


What does CMS stand for?

Content Management System

Back to top


What is a CMS?

A CMS is the software that organizes information typically presented on a website.

Back to top


What is the difference between a CMS and a portal?

A portal is just a large CMS. It is designed to organize ECM (Enterprise Content Management), frequently including a multitude of content types (news, FAQs, links, images, files), content workflow, etc.

Back to top


Why doesn't [modulename] appear in the list of available modules in Blockomatic/apiFunction?

Modules that are not API compliant typically include the site header and footer automatically. If they were displayed in a block, the site header and footer would also been in the block, creating an enormous layout mess. Fortunately, both Blockomatic and apiFunction filter out old phpNuke-style module entries. If a module is not listed, and you know it's installed, it is because that module is a hacked phpNuke module. Downloads and Web_Links are the most visible examples.

Back to top