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

RE: [cobalt-users] Redirect



> 
> > > I was wandering if there was a way to redirect a site like this:
> > >
> > > person goes to www.domain.com and they are redirected to 
> > > www.domain2.com/folder
> >
> > Use mod_rewrite:
> >
> > http://httpd.apache.org/docs/mod/mod_rewrite.html
> 
> On second thought, that may not work.
> 
> I believe that when using mod_rewrite and virtual hosts, the 
> directory to which you're redirecting needs to be in the 
> vhost's directory tree - it may note work if you're pointing 
> to the root of another domain.
> 

That's right, you'll get into permission issues when trying point into
someone's else document root. If it is just another folder on the drive,
make sure the permissions allow this. Alternatively, you can use
Javascript inside your index.html file to redirect or just a HTTP
Refresh tag in index.html sending it to another URL.

--
Robert