[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Domain redirect



--- "Rodolfo J. Paiz" <rpaiz@xxxxxxxxxxxxxx> wrote:
> 
> Actually, Jim, I think you have some things mixed up:
> 
> * The whole Rewrite thing is separate from Redirect.

Yes, sorry about that.  I meant Redirect, not Rewrite.

> 
> * ServerName is one name; ServerAlias are any other names 
>   which also result in the same site. Names which are in 
>   ServerAlias are *not* rewritten.

Correct.

> 
> * Redirect sends the browser to another site. Rather than 
>   "rewriting" the URL, the browser is merely being honest 
>   and showing that one page sent him to another. Since it's 
>   a different page, of course the URL changes.

Kind of, but the browser has been Redirected for the current request
and the navigational history of the browser isn't affected.  There is
no going Back to the aliased URL.

> 
> >    ServerAlias     *real* *fake*
> 
> This in particular is not correct. All ServerAlias names are
> considered real and valid.

I don't think you understood what I was saying.  The domains
fake.domain.net and real.domain.net will both match that ServerAlias.

> 
> Here's some stuff from my httpd.conf file that uses both ServerAlias
> and Redirect:
> 
> <VirtualHost www.domain.com>
>       ServerAdmin  webmaster@xxxxxxxxxx
>       ServerName   www.domain.com
>       ServerAlias  domain.com domain.net domain.org \
>                    www.domain.net www.domain.org
>       DocumentRoot /home/sites/site001/html
>       ErrorLog     /home/sites/site001/logs/error_log
>       TransferLog  /home/sites/site001/logs/access_log
> </VirtualHost>

OK, this just allows multiple DNS entries to bring up the same page. 
Every browser will still show whatever was typed that brought them to
the site.  This isn't good if you are AOL and you buy TimeWarner, you
want the browser to show AOL.com, not TimeWarner.com.  (actually it
shows Time.com).

> 
> #<VirtualHost www.domain.net>
> #     ServerName   www.domain.net
> #     ServerAlias  domain.net
> #     Redirect     permanent / http://www.domain.com
> #</VirtualHost>
> 
> Note that I use www.domain.com as the ServerName, and then 
> domain.com as the ServerAlias. Also note that there are five 
> aliases for www.domain.com and all work. Domain.net has its 
> own alias, then redirects to the first site. domain.org is 
> dealt with in exactly the same way.

Rodolfo, you used 2 configurations to achive that, just like I did in
my example.  AFAIK, without 2 sections there is no other way to achieve
the desired effect of having all domains redirected into one specific
domain, including *all* possible URLS within the site.

Try these and see what you get:

   http://www.netcoolusers.org/
   http://www.netcoolusers.net/
   http://www.netcoolusers.com/
   http://www.netcooluser.org/
   http://www.netcooluser.net/
   http://www.netcooluser.com/
   http://www.netcoolusersgroup.org/
   http://www.netcoolusersgroup.net/
   http://www.netcoolusersgroup.com/
   http://www.netcoolusergroup.org/
   http://www.netcoolusergroup.net/
   http://www.netcoolusergroup.com/
   http://www.inug.org

Now add /files on to any of the above and you will see uniformity.  The
end result is that all users wind up at ONE specific address so that
bookmarking it will not cause problems in the future.

hth

-Jim P.


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/