httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Warwick" <>
Subject RE: mod_rewrite
Date Mon, 05 Aug 2002 22:26:24 GMT
The rewriteCond directive has some tests for the existence of a file or
directory (-d and -f) that you may be able to use to redirect if a file
or path doesn't exist.

then see
for examples that test for missing files and redirect accordingly.


-----Original Message-----
From: []
Sent: Tuesday, 6 August 2002 9:02 a.m.
Subject: mod_rewrite

I got a question about the use of mod_rewrite. 
I want to install a rewrite-rule, doing the following: 
If a user requests (with an external referrer) the URL, s/he should be redirected to If the user already surfs on the site (referrer*), than this rule should not redirect the user.
I have an archived website and I want Users, who enter the site via
deeplink, a search engine, ... on a subpage, to be redirected to the
homepage (, where'll be an explanation, that it is
archived. After that redirect the user should be able to surf along as
s/he likes to.
Does anybody have a clue how to build such a rule? 

Thanks in advance, 

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message