Link to home
Start Free TrialLog in
Avatar of SrinathS
SrinathSFlag for United States of America

asked on

[IIS 7.5] Remove %20 from URL using Rewrite module v2

Hello,

I've a website running on SharePoint Foundation 2010 which is relayed on IIS 7.5. I've a page with Title "Service Catalog" which results the URL as "https://intranet/portal/SitePages/Service%20Catalog.aspx"

I've Rewrite module 2 installed on IIS 7.5 and configured with one rule which redirect users from http to https

Q: I would like to remove "%20" from any URL for the site. I can't simply rename the Site Title to get rid of this, since inbuilt web parts relayed on the path with "%20".

So I would like to rewrite the URL by removing %20 via Rewrite module 2 so that other web parts relayed on this URL will work normally.

I'm new to Rewrite module. Clear guidance will be greatly appreciated. Thank you!
Avatar of Arthur_Wood
Arthur_Wood
Flag of United States of America image

The %20 is NOT in the address of the URL.  %20 is the ASCII Encocded markup for a BLANK character (%20 is the encoding for HEX 20 which is ASCII 32 = " ").  When the URL is decoded, it becomes Service Catalog.aspx
  If you were to remove the %20, it would decode to ServiceCatalog.aspx, which does not exist.

AW
Avatar of SrinathS

ASKER

Arthur,

In that case, Is there anyway to replace "%20" with hyphen "-" or plus "+" symbols via Rewrite v2 module for IIS 7.5?

Thanks.
Avatar of Manoj Patil
ASKER CERTIFIED SOLUTION
Avatar of Arthur_Wood
Arthur_Wood
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial