dns management

They have: 1 posts

Joined: Apr 2005

i have a website ex: xyz.com and created dns zone :
like -111.xyz.com, 222.xyz.com, 333.xyz.com and so
class -IN
type -A
spec-ipaddress

when somebody enters url-
111.xyz.com it will point to xyz.com/111folder/default.asp
and 222.xyz.com=>xyz.com/222folder/default.asp
i am a newbie..could anyone help me how to do that writing scripts...

They have: 5 posts

Joined: Apr 2005

Options +SymLinksIfOwnerMatch << depends on serverset up
#Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^111.xyz.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.111.xyz.com$
RewriteRule ^(.*)$ http://www.xyz.com/111folder/default.asp$1
RewriteCond %{HTTP_HOST} ^222.xyz.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.222.xyz.com$
RewriteRule ^(.*)$ http://www.xyz.com/222folder/default.asp$1 [R=301,L]

hope it helps

Now offering cPanel hosting packagesJC-Hosting

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.