homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

Convert UPPER to lower Case
IIS Re-Write?

 11:21 am on Nov 19, 2009 (gmt 0)

Is there a way to change upper case file & directory names to lower case and redirect the upper case to lower case once this has been done?

This is an IIS server running .NET, not Apache.

I have been looking in Google for over an hour and cannot find anything...



 11:46 am on Nov 19, 2009 (gmt 0)

Are you using IIS7 with the rewrite module?

if so, you can add this rule to web.config:

<rule name="Convert to lower case" stopProcessing="false">
<match url=".*[A-Z].*" ignoreCase="false"/>
<!-- The following condition prevents rule from rewriting requests to .axd files -->
<add input="{URL}" negate="true" pattern="\.axd$"/>
<action type="Redirect" url="{ToLower:{R:0}}" redirectType="Permanent"/>


 9:14 am on Nov 20, 2009 (gmt 0)

Excellent thanks Marcel.

Will give that a try.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved