![]() |
Virtual Domain Hosting????
Anybody know how to do this?
I've got a domain at domaina.com with an IP address xxx.xxx.xxx.xxx I want domainb.com to point to domaina.com/domainb I made an index.cgi but it doesn't display domainb.com in the location it displays domaina.com/domainb How would I make it say domainb.com in the location? I read some text at http://httpd.apache.org/docs/vhosts/examples.html about apache, but I am just confused. Thanks, Will |
#
# In this file, you need only change the value "yourdomain" to match # your real domain ("whatever\.com", and all "." must be prefixed with a "\") # # Then you create the "subdomains" directory in your public_html directory # and create in that directories named for the subdomain you want: # http://iwantthis.yourdomain/ would be in /public_html/subdomains/iwantthis/ # RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?yourdomain$ [NC,OR] RewriteCond %{REQUEST_URI} ^/?subdomains/ [NC] RewriteRule ^. - [L] RewriteCond %{HTTP_HOST} ^(www\.)?[^.]+\.yourdomain$ [NC] RewriteCond %{REQUEST_URI} !^(www\.)?[^.]+\.yourdomain$ [NC] RewriteRule ^(.+) %{HTTP_HOST}/$1 [NC] RewriteRule ^(www\.)?([^.]+)\.yourdomain/(.*) /subdomains/$2/$3 [L] |
is this insrted in my .htaccess file?
|
This is MUCH easier .... go to www.zoneedit.com and sign up ...
they offer FREE domain forwarding for up to 5 domails ... as well as free unlimited email forwarding for the same domains ... and you can cloak the domain name as well .... I have used this service for directing many of the .NETs I own to the .COMs ... |
Quote:
Normally This is DOne in DNS. You might want to learn Bind :stoned It is not a Easy task one little messup will crash the whole thing :winkwink: |
Quote:
|
Quote:
|
All times are GMT -7. The time now is 03:46 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123