RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc$ /efg/%1 [L]
I have tried the above but it still gives me a file not found for abc. RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc /efg/%1 [L] This also did not work. RewriteCond %{QUERY_STRING} ^id=(.*) RewriteRule ^/abc /efg/%1 This also failed to work. Any other thoughts. -----Original Message----- From: Anthony J. Biacco [mailto:abia...@formatdynamics.com] Sent: Wednesday, March 18, 2009 4:04 PM To: users@httpd.apache.org Subject: RE: [us...@httpd] RewriteRule problem abc isn't part of your query Make it: RewriteCond %{QUERY_STRING} ^id=(.*) [NC] RewriteRule ^/abc$ /efg/%1 [L] -Tony --------------------------- Manager, IT Operations Format Dynamics, Inc. 303-573-1800x27 abia...@formatdynamics.com http://www.formatdynamics.com -----Original Message----- From: Campbell, Lance [mailto:la...@illinois.edu] Sent: Wednesday, March 18, 2009 3:03 PM To: users@httpd.apache.org Subject: RE: [us...@httpd] RewriteRule problem So now I have the following: RewriteCond %{QUERY_STRING} ^abc?id=(.*) [NC] RewriteRule ^abc /efg/%1 [L] It still does not work. I am still getting the file not found. I feel like I am closer. Thanks, Lance -----Original Message----- From: Eric Covener [mailto:cove...@gmail.com] Sent: Wednesday, March 18, 2009 3:40 PM To: users@httpd.apache.org Subject: Re: [us...@httpd] RewriteRule problem On Wed, Mar 18, 2009 at 4:38 PM, Campbell, Lance <la...@illinois.edu> wrote: > RewriteRule ^/abc?id=(.*) /efg/$1 You need to deal with the query string in a RewriteCond. http://wiki.apache.org/httpd/RewriteQueryString -- Eric Covener cove...@gmail.com --------------------------------------------------------------------- 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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org