Sharepoint SEO - How to lowercase urls with rewrite rules?
-
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
-
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!
-
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?
-
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-16575Not 100% sure they will help but thought I would pass them on in case they did.
-
a lot of rewrites use similar rules. not sure if this will help but:
http://www.isapirewrite.com/docs/ -
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Should I change the URL now?
Hi all, I have a client website that got hit in the latest algorithm update. It since appears that it had over 100 suspect links to it. I performed the Disavow procedure a few weeks ago via my Google Webmaster account, but have not received a message yet to say its been actioned. The majority of these suspect links go to one page. I am considering changing the base category (in Wordpress) to a different keyphrase and then submitting a new sitemap for indexing. This way there will be no actual link from a suspect website to a page on my website. Do you see what I mean? Will this help do you think? Thanks in advance.
Technical SEO | | BrandC0 -
What's the rules on overly dynamic URLs ?
Developer says "Overly-Dynamic URL. Developer says that this is the hardest and complex part. It will be possible to change all of the search criterias to use ( / )
Technical SEO | | stewbuch1872
But in this case each of the pages will be indexed and every time listing gets added, content will get changed. Which for example Google will start blocking what is the best way to address this and will google block as suggested ? thanks0 -
SEO Audit - Panda
I am looking for a reputable SEO company to help diagnose Panda issues. I am very familiar with SEO and lead an in-house team so I need more than a basic audit. e.g You need unique content
Technical SEO | | WEB-IRS
e.g. You need to create quality content I am looking for someone with a technical mind to help diagnose. Please reach if you have someone in mind.0 -
301 Redirects - SEO Benefit?
Hello, Years ago, our company started out as a Yahoo store. We've since moved onto another website with its own shopping cart but since the Yahoo store is almost 10 years old, there's a lot of history there and it still exists with the occasional order. We currently use it for reputation management purposes with links to our real ecommerce site but we're thinking of just redirecting the Yahoo store to our ecommerce site. Is there any SEO benefit in doing this? We were also kind of penalized by Panda. Would this help us out at all (the descriptions on both sites could be considered duplicate content).
Technical SEO | | airnwater0 -
Ecommerce SEO with 130 keywords
Hello everyone, My name is Davys and I'm what you call a newbie...so the question may sound stupid....But where we go. In this campaign I will be targeting around 130 to 150 keywords to my store. So here is the technical question. What is the right way of indexing 150 keywords? Should I attempt to have all 150 going to www.mysite.com or should I break it down into smaller pages if I can put it that way. Like www.mysite.com/pages/bikiniwax for example. Even if I break it down, what is the right amount of keywords that I should SEO per page? Or do 150 pages? Please helppppppppppppppppppppp.... 🙂 Thanks a lot for your help.
Technical SEO | | Davys0 -
Does ViewState affect SEO Rankings
We are redesigning our website and looking at our large data in the viewstate hidden field. Our thoughts are to move to bottom of page but our developers are stating this is an old myth and no resent documentation if it improves our SEO. Does ViewState (big data in hidden fields ) effect SEO in any way? If ViewState (hidden field) is present at the end of HTML document instead of near the start of HTML document then will it increase our ranking in search engines? Does Google or any other engine read the hidden fields? or do they ignore them? Can you point me to some valid documentation to back this up? Feed back is appreciated. Cathy
Technical SEO | | SEO-Team0