JamesGMills
Programmer
Hi,
I am really struggling with this
I am looking to do the following:
Direct to domain.co.uk
Direct domain.co.uk to website.php
Direct admin.domain.co.uk to admin.php
and direct every other subdomain to box.php
This is what I have so far... miles off I think
RewriteCond %{http_host} ^ [NC]
RewriteRule ^(.*)$ [R=301,NC]
RewriteCond %{HTTP_HOST}!^domain\.co\.uk
RewriteRule ^(.*)$ /website.php/$1 [L]
RewriteCond %{HTTP_HOST}!^admin\.domain\.co\.uk
RewriteRule ^(.*)$ /admin.php/$1 [L]
------------------------
I am really struggling with this
I am looking to do the following:
Direct to domain.co.uk
Direct domain.co.uk to website.php
Direct admin.domain.co.uk to admin.php
and direct every other subdomain to box.php
This is what I have so far... miles off I think
RewriteCond %{http_host} ^ [NC]
RewriteRule ^(.*)$ [R=301,NC]
RewriteCond %{HTTP_HOST}!^domain\.co\.uk
RewriteRule ^(.*)$ /website.php/$1 [L]
RewriteCond %{HTTP_HOST}!^admin\.domain\.co\.uk
RewriteRule ^(.*)$ /admin.php/$1 [L]
------------------------