Simple Rewrite

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 29 Apr 2012, 15:52

Simple Rewrite

29 Apr 2012, 15:54

I'm having trouble doing a virtual directory rewrite.

I need to route
/search/A/a/B/b/C/c....

to /PropertyListings.aspx?A=a&B=b.....

Any help would be greatly appreciated.

Thanks

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

Re: Simple Rewrite

03 May 2012, 06:53

Hello,

Please, try using the following for 4 parameters, you mat add enother for 2,6,8, etc:

Code: Select all
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^search/(^/+)/(^/+)/(^/+)/(^/+)$ /PropertyListings.aspx?$1=$2&$3=$4 [NC,L]


Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 0 guests