BIG Thank U to RichardK

Using a single web hosting account to host multiple sites

BIG Thank U to RichardK

Postby modo » Mon Sep 18, 2006 12:22 am

Last night after erasing my .htaccess file I lost some important mod-rewrite info. Being desperate I searched through this forum and found the solution which made me happy. Therefor I want to say thank u Richardk, also thx for all other answers you posted in this forum.

In my honest opinion something like the the following code should be added as a sticky as it seems to be the basic redirect for subdomain handling.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www\.)?DOMAIN$ [NC]
RewriteCond %{HTTP_HOST} ^([^.]+)\.DOMAIN$ [NC]
RewriteRule .* /SUBDIR/PAGE?SOMETHING=%1 [L]

Once again, thx richardk. I enjoy the way you explain things and help others out.
Posts: 4
Joined: Tue Mar 28, 2006 1:23 pm

Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 1 guest