ISAPI Rewrite Special Characters
4 posts
• Page 1 of 1
ISAPI Rewrite Special Characters
Hi
I am having a problem in a url, when i am trying to access i am getting a message
A potentially dangerous Request.Path value was detected from the client (<).
This is the current url
http://www.abc.com/%3C%25=sSiteURL%25%3EDirectory1/Directory2/Directory3/Directory4/FinalDirectory/1883.htm
I want to remove
%3C%25=sSiteURL%25%3E (This String)
I want the url to be like this
http://www.abc.com/Directory1/Directory2/Directory3/Directory4/FinalDirectory/1883.htm
Can anyone please help me in sorting this out
Thanks
I am having a problem in a url, when i am trying to access i am getting a message
A potentially dangerous Request.Path value was detected from the client (<).
This is the current url
http://www.abc.com/%3C%25=sSiteURL%25%3EDirectory1/Directory2/Directory3/Directory4/FinalDirectory/1883.htm
I want to remove
%3C%25=sSiteURL%25%3E (This String)
I want the url to be like this
http://www.abc.com/Directory1/Directory2/Directory3/Directory4/FinalDirectory/1883.htm
Can anyone please help me in sorting this out
Thanks
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: ISAPI Rewrite Special Characters
Hello,
Do you want this rule to be generic and handle more than 1 URL, or is it supposed to be a single-url rule.
Regards
Andrew
Do you want this rule to be generic and handle more than 1 URL, or is it supposed to be a single-url rule.
Regards
Andrew
Re: ISAPI Rewrite Special Characters
Hi
I want this rule to be generic and handle more than 1 url's
You help would be much more appreciated
I want this rule to be generic and handle more than 1 url's
You help would be much more appreciated
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: ISAPI Rewrite Special Characters
Hello,
Lets try with the following:
You may need to try using NE or NU flag for this rule, in addition to NC,R=301, and L.
Regards
Andrew
Lets try with the following:
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:Host} ^www\.abc\.com$ [NC]
RewriteRule \<\%=sSiteURL\%\>(.*) /$1 [NC,R=301,L]
You may need to try using NE or NU flag for this rule, in addition to NC,R=301, and L.
Regards
Andrew
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 21 guests