Mask subdomain

Hello,

I would like to mask a subdomain using the below method (NO FRAME), but I have no clue how to do this, can anyone point me the right direction.

(This is so-called internal redirect)

RewriteEngine on
RewriteRule ^/icons/(.+) - [PT,L]
RewriteRule ^/(.*) /system/path/to/docroot/of/subdomain/domain.com/$1

If subdomain is on another server:

RewriteEngine on
RewriteRule ^/icons/(.+) - [PT,L]
RewriteRule ^/(.*) http://subdomain.domain.com/$1 [P,L]

 

 

 

 

Top