htaccess, rewrite and redirect help please

2002-06-03 Thread Paul Williams
Title: htaccess, rewrite and redirect help
please


Hi all,

I'm so new to this, please excuse me if i'm off base.

I'm trying to write an htaccess script which will essentially
say If you're from this web page you get rejected, but all
other web page requests go here:

This is what i pieced together:

-
AuthUserFile /dev/null
AuthGroupFile /dev/null
RewriteEngine On
RewriteCond %{HTTP_REFERER}
^http://www.unauthorized_site.com/index.html [NC]
RewriteRule /*
http://www.my_site.com/access/go_away.html [R,L]
Redirect http://www.my_site.com/hello.html
-

Am i on track?

Thanks,

Paul

-- 
==
http://www.StuckMic.com/america -- The American Code
Remembering the attack on America
http://www.StuckMic.com -- MIVA Powered Aviation 
and Air Traffic Control discussion and chat.
http://www.WavSounds.com -- Thousands of
funny wavs, fully searchable.



Re: htaccess, rewrite and redirect help please

2002-06-03 Thread Per Einar Ellefsen

At 17:54 03.06.2002, Paul Williams wrote:
Hi all,

I'm so new to this, please excuse me if i'm off base.

I'm trying to write an htaccess script which will essentially say If 
you're from this web page you get rejected, but all other web page 
requests go here:

Sorry, but this is specific to Apache, not to mod_perl. Look at Apache 
mailing lists or newsgroups for answers: 
http://httpd.apache.org/lists.html#http-users


-- 
Per Einar Ellefsen
[EMAIL PROTECTED]