httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Horner, Jonathan J. (JH8) " <...@y12.doe.gov>
Subject RE: Regular expressions and Redirectmatch question...
Date Mon, 08 Apr 2002 15:18:14 GMT
If I were you, I'd try:

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

Since you don't appear to need to save the matching string for the regexp,
don't put parenthesis around it.

Try that, and if it doesn't work, let me know.

Thanks,

Jon Horner
SAIC WebPool
jh8@y12.doe.gov
Office:  (865) 425-5178
Pager:  (865) 417-5012


-----Original Message-----
From: Matt Goebel [mailto:goebel@emunix.emich.edu]
Sent: Friday, April 05, 2002 2:38 PM
To: users@httpd.apache.org
Subject: Regular expressions and Redirectmatch question...



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

---------------------------------------------------------------------
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