httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eimantas Vaiciunas <eimantas.vaiciu...@sc.vu.lt>
Subject Re: [users@httpd] apache rewrite question
Date Wed, 20 Oct 2004 09:59:18 GMT
On Wednesday 20 October 2004 09:14, Michael Dale wrote:
> What I am trying to do is if someone comes from a certain domain they will
> be redirected to a certain area of the site so.
>
> (.htaccess file in the root of www.dalegroup.net)
>
> RewriteCond %{HTTP_REFERER} !^http://forums.dalegroup.net/ [NC]
> RewriteRule .* /welcome.html [R,L]
RewriteCond %{HTTP_REFERER} !^ http://forums.dalegroup.net/ [NC,OR]
RewriteCond %{HTTP_REFERER} !^ http://www.yourdomain.net/
RewriteRule .* /welcome.html [L]

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message