httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] REQUEST_URI multiple wildcard pattern
Date Sat, 30 Apr 2011 18:21:37 GMT
On Sat, Apr 30, 2011 at 12:41 PM, Arunkumar Janarthanan
<arunkumar.webadmin@gmail.com> wrote:
> Thank you very much Lee, appreciate your assistance with this issue. However
> with the below rule the URI pattern with actual string even is not working.
>
> Like I said when I try with wget www.xyz.com/files that goes to
> www.abc.com/page-not-found.
>
> RewriteRule !^/(files|admin|user|product|go)$
> http://www.abc.com/page-not-found [R=301,NC,L]

If this is in htaccess or <Directory>, drop the leading slash.  The
"current" prefix, ending in a slash, is removed before you compare in
this context.

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


Mime
View raw message