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

Re: [cobalt-users] Url rewriting



Hello,
If you've already set up the virtual site for the two domains, one can
easily be redirect to the other by setting up a .htaccess file in
/site/web/ with the following content:

Redirect index.html http://domain.com

See the apache manual for more fancy rewriting that is possible.
mod_rewrite is compiled into Apache on the Raq, and you could use rewrite
rules and all that stuff. But for our purpose, the line above is all you
need to get the job done.



Med vennlig hilsen / Yours Sincerely,
Per Magne Knutsen
NetHut.no
http://www.nethut.no
mailto: pknutsen@xxxxxxxxx



On Thu, 11 Jan 2001, Daniel Mullin wrote:

> >Hello all,
> 
> finally got my mits on my first RAQ4,
> and now I need some help,
> installed mysql,
> doddle,
> php running fine.
> liking this so far,
> but...
> 
> I need to redirect a tld to another on the domain...
> 
> eg
> 
> www.mysite.co.uk needs to direct straight away to
> www.mysite.com which is on the same box,
> 
> I would prefer to not use a click here or content refresh page,
> and would like to rewrite the url upon receipt of the httpd request,
> I have access to the name servers but though best to ask you all 
> first and find out whether using mod_rewrite or something similar is 
> a better idea?
> 
> thanks in advance
> 
> Danny
> 
> 
> _______________________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To Subscribe or Unsubscribe, please go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>