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

RE: [cobalt-users] Redirect



Wrong,  You can use the rewrite mod to do it.  Try something like this:

	# rewrite to redirect domain.com to domain2.com/folder
	RewriteCond %{SERVER_NAME} ^.*domain\.com.* [NC]
	RewriteRule ^(.*) http://www.domain2.com/folder$1 [L,R]

Jim Moreno
Texas Web Networks


-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Robert
Fitzpatrick
Sent: Friday, March 21, 2003 10:32 AM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: 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


_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users