[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] Redirecting subdomains to different URL's
- Subject: [cobalt-users] Redirecting subdomains to different URL's
- From: "Edwin Nouwen" <edwin@xxxxxxxx>
- Date: Wed Nov 29 12:12:34 2000
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
Hi there,
I've just started configuring my Cobalt RaQ4i server and have run into some
problems that I can't solve on my own..
I have browsed the archives of this list but can't seem to find the right
answers to my questions..
Before when I didn't have my own server and no DNS, I redirected all my
different domains (30+) and hosts (200+) using a pretty elaborate CGI script
that looked at the URL and redirected to different html pages, kinda like
this:
*.domain-one.com -> /domain1/index.html
host1.domain-two.com -> /domain2/index.html?par=johnny
pete.domain-two.com -> /domain2/index.html?par=peter
jane.domain-two.com -> /domain2/index.html?par=jane
*.domain-two.com -> /domain2/index.html
Problem (1)
This kind of script works perfectly, but most search engines hate it!
Resulting in the fact that none of the domains and hosts you redirect using
this method will get picked up by search engines..
Problem (2)
When I put this script in a virtual site (www.site1.com) and point different
domains and hosts to its IP number the server automaticly changes the URL to
the main host.domain of this virtual site (www.site1.com) and the script is
useless..
Note1: At the moment none of the domains are in my own DNS but I can make
them point to different IP numbers.
Note2: Above I've only shown you host1, pete and jane, but I have several
hundred hosts in the script.
Questions:
- Is it possible to stop the server from changing the URL to the main
host.domain?
- Is it possible to add a catchall webalias for hosts like you can for email
in a virtual site? (*.domain.com)
- Is it possible to put the above redirections in the httpd.conf?
- If I put the above redirections in the httpd.conf file, will the GUI mess
it up?
- If I put an include in the httpd.conf will it remain there or will the GUI
delete it?
- If I put an include in the httpd.conf do I have to restart the httpd
everytime I change the included file?
- Any other suggestions?
Kind regards,
Edwin Nouwen (edwin@xxxxxxxx)
---------------------------------------------------------------------
Intex Internet Services
Postbus 50 tel: 0493-351839 eml: info@xxxxxxxx
5750 AB Deurne fax: 0493-351712 web: www.intex.nl
---------------------------------------------------------------------