Forum Moderators: phranque

Message Too Old, No Replies

Alias, Masking

How do I mask an alias domain to a single page?

         

rpophessagr

9:35 am on Aug 3, 2010 (gmt 0)

10+ Year Member



Hi

I have several domains aliasing to my site and I would like specific ones to mask specific pages.

For instance:
My primary domain is mydomain.com
if I go to the domain mydomain.net, aliased to that server
I want it to load the contents of mydomain.com/network

How would I do this with the htaccess?

Thanks

jdMorgan

2:26 pm on Aug 3, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's a fairly trivial application. Please make an attempt at coding this stuff yourself. See our Apache Forum Charter for more information.

RewriteCond %{HTTP_HOST} ^(www\.)?mydomain\.net
RewriteCond $1 !^network/
RewriteRule ^(.*)$ /network/$1 [L]

Jim