On Sat, Nov 14, 2009 at 11:34 AM, Jack Knowlton <jknowlton@xxxxxxxx> wrote: > Hi all. > I am trying to have apache (2.2.14-1 from Debian) redirect any request to > a certain page. In the server root I have the single file "park.html" and > I want that all requests for resources (documents as well as folders) on > that domain be redirected to that particular page. > To be specific: > * Request: "www.domain.com" -> redirect "www.domain.com/park.html" > * Request: "www.domain.com/otherpage.php" -> "www.domain.com/park.html" > * Request: "www.domain.com/dir1/hello.cgi" -> "www.domain.com/park.html" > ecc.. > > I currently tried using the following rule: "RedirectMatch permanent > ^(.*)$ /park.html" but it doesn't seem to work (results in an infinite > loop). I would imagine that is because park.html is trying to redirect to itself. You should have a rule before this to check if the page is park.html, then stop processing. > Since I need the redirect badly, I set up 404s to go to "park.html" but I > think that won't go so well with robots. > Any suggestions? > Thanks. > > -JK > > > --------------------------------------------------------------------- > 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@xxxxxxxxxxxxxxxx > " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx > For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx > > -- Glen Barber --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx