How to obfuscate query string

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 23 May 2012, 16:21

How to obfuscate query string

23 May 2012, 18:00

I'm trying to replace a link like

http://www.domain.com/foo.swf?a=/p1/p2/b.xml with

http://www.domain.com/bar.swf

Goal is to make the query string parameters invisible to the user.

Please help.

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: How to obfuscate query string

24 May 2012, 05:52

Hello,


The idea is to make two rules: 301-redirect ad rewrite:

Code: Select all
RewriteEngine on
RewriteBase /

RewriteRule ^bar\.swf$ /foo.swf?a=/p1/p2/b.xml [NC,L]

RewriteCond %{QUERY_STRING} ^a=/p1/p2/b.xml$ [NC]
RewriteRule ^foo\.swf$ /bar.swf [NC,R=301,L]


In case you have lots of that, you might be interested in mapfiles. It's in "Comprehensive mapfiles" in URL


Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 6 guests