On Jun 27, 2006, at 7:29 AM, users-digest-help@xxxxxxxxxxxxxxxx wrote:
Previously the .htaccess file was in the document root, which I assume is probably a mistake. This morning I came in and tried moving the .htaccess file into the scriptalias'd cgi-bin, the contents of that file read: RewriteEngine on RewriteRule ^cgi-bin/miva(.*)$ /mm5/merchant.mvc$1 [R=301] After that failed to work, I attempted to move it into the httpd include file that defines the virtualhost for this server, which although was not rewriting the way I had hoped, was at least applying the rewrite rules to the URI. Which leads me to this question, Is mod_rewrite capable of rewriting the query string portion of the url? The end result of what i'm hoping to do here is rewrite URI's in the form: http://server.com/cgi-bin/miva?Merchant2/merchant.mv+Screen=PROD&Store_Code=server&Product_Code=ow_creme into: http://server.com/mm5/merchant.mvc?Screen=PROD&Store_Code=server&Product_Code=ow_creme is that going to be possible? I've got my RewriteLogLevel at 7, and it seems to only include the URL in the rewrite schemes, which made me realize i've never actually tried a rewrite on the ${QUERY_STRING} portion of a URI. Thanks again, Brad |