« Previous Next »

Thread: Lowercase URL

Last post 07-23-2008 10:09 PM by ruslany. 8 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (9 items)

Sort Posts:

  • 06-18-2008, 8:12 PM

    • augury
    • Not Ranked
    • Joined on 07-27-2007, 6:42 AM
    • Posts 5

    Lowercase URL

    I would like to make sure everything is in lowercase in my url. When I imported this rule it did not apply, it actual broke:

    rewriteRule ^/(.*)$ /${lowercase:$1}

    Any help would be greatly appreciated

  • 06-19-2008, 8:18 AM In reply to

    Re: Lowercase URL

    Case doesn't matter in a URL, why is this important?

    Jeff

    Look for Wrox's new book Professional IIS 7 in your local bookstore, or order now at Amazon.com
  • 06-19-2008, 5:05 PM In reply to

    • augury
    • Not Ranked
    • Joined on 07-27-2007, 6:42 AM
    • Posts 5

    Re: Lowercase URL

    We need this for redirection to a linux server.
    For instance http://www.example.com/homepage.html is not the same as http://www.example.com/Homepage.html

    A.

  • 06-24-2008, 7:32 AM In reply to

    Re: Lowercase URL

    Hi,

    What is your rewrite module? The rule is depending on rewriting module, please look it up at the document of the tool.

     

    Zhao Ji Ma
    Sincerely,
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
  • 06-24-2008, 10:59 AM In reply to

    • augury
    • Not Ranked
    • Joined on 07-27-2007, 6:42 AM
    • Posts 5

    Re: Lowercase URL

    I am using IIS7 rewrite module. I do not control the destination page I am redirecting to, nor do I control their server.

  • 06-24-2008, 2:44 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 651

    Re: Lowercase URL

    The URL rewrite module for IIS 7.0 currently does not have the built in support for converting to lower case.

    http://ruslany.net
  • 07-12-2008, 2:48 PM In reply to

    • cichanlx
    • Top 200 Contributor
    • Joined on 02-24-2004, 12:31 AM
    • Posts 27

    Re: Lowercase URL

    I think you could easily achieve your lowercased URL via a bit of code in the Global.asax.

    -------------

    Protected Sub Application_BeginRequest(ByVal sender As Object, ByVal e As System.EventArgs)

    Dim strOriginalRequestURI As String = Request.Url.AbsoluteUri

    Dim strLowerRequestURI As String = Request.Url.AbsoluteUri.ToLower

    If String.Compare(strOriginalRequestURI, strLowerRequestURI, False) <> 0 Then
    With Response

    .Clear()

    .BufferOutput = True

    .StatusCode = 301

    .Status = "301 Moved Permanently"

    .RedirectLocation = strLowerRequestURI

    .End()

    End With

    End If

    End Sub

    -------------

    Cordially,

    Lee C.

  • 07-18-2008, 5:58 PM In reply to

    • mwoj
    • Not Ranked
    • Joined on 07-18-2008, 9:10 PM
    • Posts 3

    Re: Lowercase URL

    Any plans to add lowercase conversion support in the near future?

  • 07-23-2008, 10:09 PM In reply to

    • ruslany
    • Top 25 Contributor
    • Joined on 07-01-2007, 7:38 PM
    • Redmond, WA
    • Posts 651

    Re: Lowercase URL

    The lowercase conversion support will be provided in beta release of the module.

    http://ruslany.net
Page 1 of 1 (9 items)
Microsoft Communities