httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Goebel <goe...@emunix.emich.edu>
Subject Regular expressions and Redirectmatch question...
Date Fri, 05 Apr 2002 19:37:48 GMT

Hello,

  The following lines should, and appear to do the same thing, redirect
any references to a subtree of the htdocs directory.  The problem is 
that if I set up the first set of redirects like the second one, they
fail to redirect at all.  Am I missing something obvious here?

RedirectMatch permanent ^/public/hperd/dance(/)?$ http://www.emich.edu/coe/
RedirectMatch permanent ^/public/hperd/dance/.*$ http://www.emich.edu/coe/

RedirectMatch permanent ^/public/labs$  http://www.labs.emich.edu/
RedirectMatch permanent ^/public/labs/(.*)?$ http://www.labs.emich.edu/

The setup which didn't work at all :

RedirectMatch permanent ^/public/hperd/dance$ http://www.emich.edu/coe/
RedirectMatch permanent ^/public/hperd/dance/(.*)?$ http://www.emich.edu/coe/

Thanks for any help,
Mattias

-- 
Matthew Goebel : goebel@emunix.emich.edu : Unix Jockey @ EMU : Hail Eris
Neo-Student, Net Lurker, Donut consumer, and procrastinating Furry Fan.
 "Always with the negative waves, Moriarty" - Oddball
 "Comfort the troubled, and trouble the comfortable." - Dietrich Bonhoeffer

---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message