I provide a free forum hosting service, and went to create semi-custom homepage for each of my clients (done via the $_GET[page]). What I was wondering is if there was a way to do this:
sub.domain.com/dir -> www.domain.com?page=sub-dir
I was thinking something liek this would work, but the directory isn't part of the HOST address to get the 2nd variable.
RewriteCond %{HTTP_HOST} !^www\.domain\.com?$
RewriteCond %{HTTP_HOST} ^([^.]+)\.domain\.com/([^.]+)?$
RewriteRule ^$ /index.php?page=%1-%2 [L]
Thanks!