Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-05-04 Thread Dick Gregor
dick gregor. PE Arunkumar Janarthanan wrote: Hi Lee, sorry for posting the requirement as it is, this is what the requirement exactly. 1. http://xyz.com/esweep* - no redirection at all (so urls like esweepconfirm/thank-you/ do not redirect) 2. http://xyz.com/user* - no redirection at al

Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-05-03 Thread Arunkumar Janarthanan
Thank you all once again, on assisting with this issue. The requirement was unclear till we were asked to point all the URL that should not go to page-not-found page to /index.php. Now we did not have to create a negation on request_uri rather a simple RewriteRule to point those pages to index.php

Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-05-01 Thread Lee Goddard
Make sure /files does actually exist, otherwise Apache will be applying the rewrite rule to whatever your defined ErrorDocument is, if any. Check the documentation on httpd.apache.org for RewriteLog and RewriteLogLevel - they can be VERY helpful. Make sure you remove those directives when you

Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-04-30 Thread Eric Covener
On Sat, Apr 30, 2011 at 12:41 PM, Arunkumar Janarthanan 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.

Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-04-30 Thread Arunkumar Janarthanan
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:/

Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-04-30 Thread Lee
Hi Arunkumar You have a list of URIs to NOT match for redirection, so begin the pattern, as you did, with ! RewriteRule ! You then have a group of top-level directory or files to be ignored, so you can anchor at the start of the URI: RewriteRule !^/ Then put all your dir/file name

Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-04-30 Thread Arunkumar Janarthanan
Hi Lee, sorry for posting the requirement as it is, this is what the requirement exactly. 1. http://xyz.com/esweep* - no redirection at all (so urls like esweepconfirm/thank-you/ do not redirect) 2. http://xyz.com/user* - no redirection at all 3. http://xyz.com/files/* - no redirection at all 4.

Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-04-30 Thread Lee Goddard
Hi Arunkumar You wrote, I could use !^/(files|admin|user|product|go), however this would allow all wildcard pattern for the URI string like "user/login" ? or "products/newarrival" ? This is not true. Nothing beginning with the words files, or admin, or user, or product, or go, would match.

Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-04-30 Thread Arunkumar Janarthanan
Thanks Lee, for your reply. I could use !^/(files|admin|user|product|go), however this would allow all wildcard pattern for the URI string like "user/login" ? or "products/newarrival" ? Is why I tried with (.*) but the wildcard string still not getting picked up by the rule. On Sat, Apr 30, 2011

Re: [users@httpd] REQUEST_URI multiple wildcard pattern

2011-04-29 Thread Lee
On 30/04/2011 05:46, Arunkumar Janarthanan wrote: Hi, I have a request that the site contains specific URI pattern should go to another URL while the other URI patterns goes to 404 page of external site. Here below the rule I have written, however this is not working for wildcard match

[users@httpd] REQUEST_URI multiple wildcard pattern

2011-04-29 Thread Arunkumar Janarthanan
Hi, I have a request that the site contains specific URI pattern should go to another URL while the other URI patterns goes to 404 page of external site. Here below the rule I have written, however this is not working for wildcard match of the URI pattern. RewriteCond %{REQUEST_URI} !^/(files(.*