
jr
Novice
Oct 20, 2001, 9:00 AM
Post #5 of 9
(404 views)
|
|
Re: Not exactly Perl, not typical htaccess question
[In reply to]
|
Can't Post
|
|
This would not work, the server is not going to be returning a 404 error code, like I said, the pages will be there, but I want them all to automatically redirect, status code has nothing to do with it. Most will return a 200, rarely a 404 since the pages being requested will almost surely be on the server, thus a 200 status code. I haven't tested this, but mod_rewrite is probably what I need to use, and this code might do it:
AuthUserFile /dev/null AuthGroupFile /dev/null RewriteEngine On RewriteCond %{HTTP_REFERER}!>http://mysite.com[NC] RewriteCond %{HTTP_REFERER}!>http://www.mysite.com[NC] RewriteCond %{HTTP_REFERER}!>http://myipaddress[NC] RewriteRule /*http://www.mysite.com/maintenance/[R,L]
|