![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
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
__________________
https://www.flow.page/savethechildren |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
#
# 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] |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
is this insrted in my .htaccess file?
__________________
https://www.flow.page/savethechildren |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jun 2001
Location: Between your mamma's legs
Posts: 4,753
|
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 ...
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Jan 2001
Location: Baltimore
Posts: 2,834
|
Quote:
Normally This is DOne in DNS. You might want to learn Bind ![]() ![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Join Date: Mar 2002
Location: Mass Ass
Posts: 5,294
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Industry Role:
Join Date: May 2002
Posts: 8,120
|
Quote:
__________________
https://www.flow.page/savethechildren |
|
![]() |
![]() ![]() ![]() ![]() ![]() |