The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Sharepoint SEO - How to lowercase urls with rewrite rules?

    Sharepoint SEO - How to lowercase urls with rewrite rules?

    Technical SEO Issues
    6 5 2.9k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • firstconversion
      firstconversion last edited by

      We have a  borked website running on sharepoint IIS .net that has been at the mercy of many bad developers

      We have rewrite rules with an ini file for 301s etc. We are struggling to find out or figure out how to lowercase them

      The lowercase functionality may be native within sharepoint somewhere

      Any help appreciated! Sorry its so vague

      S

      1 Reply Last reply Reply Quote 0
      • firstconversion
        firstconversion last edited by

        Some update from the dev

        We’re using IIS6 and Ionic Isapi filter

        There are some instruction I found on a forum that do the lowercase redirect

        Finally, downcase as necessary.  If there are any

        uppercase characters in the URL, apply this rule.

        RewriteCond %{url}   [A-Z]+

        RedirectRule ^(.*)$  #L$1#E     [R=301]

        Will feedback if it works

        danrawk 1 Reply Last reply Reply Quote 0
        • danrawk
          danrawk @firstconversion last edited by

          a lot of rewrites use similar rules. not sure if this will help but:
          http://www.isapirewrite.com/docs/

          mentions  using "CL" (Case Lower)

          1 Reply Last reply Reply Quote 0
          • CPU
            CPU last edited by

            Hi Stephen

            Below are some URL's I happened across today when looking for something related.

            http://www.cto20.com/post/Tips-Tricks-3-URL-Rewriting-Rules-Everyone-Should-Use.aspx
            http://searchengineland.com/url-rewrites-and-redirects-part1-16574
            http://searchengineland.com/url-rewrites-and-redirects-part2-16575

            Not 100% sure they will help but thought I would pass them on in case they did.

            1 Reply Last reply Reply Quote 0
            • KeriMorgret
              KeriMorgret last edited by

              Hi Stephen,

              I'm going back through the older unanswered questions. Did you ever get this figured out? Can you share a solution with us for the archives if you did?

              1 Reply Last reply Reply Quote 0
              • aschottmuller
                aschottmuller last edited by

                Here's how to achieve what you need through an IIS URL Rewrite:

                <rewrite><rules><rule name="ForceLowercase" stopprocessing="false"><match url=".[A-Z]." ignorecase="false"><action type="Redirect" redirecttype="Permanent" url="{ToLower:{R:0}}"></action></match></rule></rules></rewrite>

                Translation: If the URL contains any uppercase letters, convert it to all lowercase, then continue processing other rules.  (You can name the rule whatever you want.)

                These rewrite rules are stored either in the ApplicationHost.config file or in Web.config files. More info and step-by step instructions: creating IIS URL Rewrites.

                Note: Compared to the [ISAPI_Rewrite] filters (httpd.ini), I've found that the IIS URL Rewrite (web.config) rules seem to match the syntax of Apache more often. As a result, it's easier to find RegEx expressions already written for what you need. It also helps to focus on debugging the actual code versus some strange IIS exception. Good luck!

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • Should we change our URLs for SEO benefit?
                  Hurf
                  Hurf
                  0
                  3
                  257

                • Changing URLs for SEO
                  mikekeeper
                  mikekeeper
                  0
                  4
                  130

                • What is the best practice to seperate different locations and languages in an URL? At the moment the URL is www.abc.com/ch/de. Is there a better way to structure the URL from an SEO perspective?
                  irvingw
                  irvingw
                  0
                  2
                  64

                • How to find original URLS after Hosting Company added canonical URLs, URL rewrites and duplicate content.
                  Nobody1560986989723
                  Nobody1560986989723
                  0
                  2
                  366

                • How to skip all rewrite rules
                  ChristopherGlaeser
                  ChristopherGlaeser
                  0
                  3
                  598

                • Importance of SEO Friendly URLs
                  6thirty
                  6thirty
                  0
                  6
                  3.2k

                • URL Rewrite
                  oznappies
                  oznappies
                  0
                  4
                  1.0k

                • URL rewrite question
                  danielmckay7
                  danielmckay7
                  0
                  6
                  890

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy