Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- removing sql query with modrewrite


tincan - 4:17 pm on Mar 13, 2003 (gmt 0)


Thanks for your replies.

I figured out how to remove the query string in the url by putting a? at the end of the rewrite rule. So now all is working perfectly. Here is the code.

RewriteCond %{QUERY_STRING} URL_ID=1527&URL_DO=DO_TOPIC&URL_SECTION=201*
RewriteCond %{THE_REQUEST}!minga

# the? at the end of the line removes the query string.

RewriteRule ^(.*) /minga? [R,L]
RewriteRule ^minga/ /minga [R,L]
RewriteRule ^minga /ev.php?URL_ID=1527&URL_DO=DO_TOPIC&URL_SECTION=201 [PT,L,NC]

Thanks again.


Thread source:: http://www.webmasterworld.com/apache/124.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com