Rewrite Rule Not working specific case

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 24
Joined: 15 Feb 2013, 04:06

Rewrite Rule Not working specific case

03 Jul 2013, 09:44

Hi Andrew,


Please chek below url's and rule's -

1 -

Source : http://at.1234.com/Documents/Test

Destination : http://at.1234.com/KandA/Documents/New%20Test

Rule Is:

RewriteCond %{HTTP:Host} ^at\.1234\.com$ [NC]
RewriteRule ^Documents/Test$ /KandA/Documents/New\%20Test [NC,R=301,L,NE]

above rule working fine.... :)


2-

Source : http://at.1234.com/Documents/New%20Folder
Destination : http://at.1234.com/Search/Documents/New%201234

Rule Is:

RewriteCond %{HTTP:Host} ^at\.1234\.com$ [NC]
RewriteRule ^Documents/New\%20Folder$ /Search/Documents/New\%201234 [NC,R=301,L,NE]

above rule not working .... :)

My observation if source url having any special characters then rule is not working. Please provide me solution.

Thanks & Regards,
Galisetti

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

Re: Rewrite Rule Not working specific case

04 Jul 2013, 00:17

Hello,

You can find the right way to address special characters here - http://www.helicontech.com/isapi_rewrite/doc/RewriteRule.htm

Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 2 guests