Rewrite Rule Not working specific case
2 posts
• Page 1 of 1
Rewrite Rule Not working specific case
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
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
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Rewrite Rule Not working specific case
Hello,
You can find the right way to address special characters here - http://www.helicontech.com/isapi_rewrite/doc/RewriteRule.htm
Regards
Andrew
You can find the right way to address special characters here - http://www.helicontech.com/isapi_rewrite/doc/RewriteRule.htm
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 2 guests