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
-
SSl and SEO
Does the type of SSL used on a site have any significance to trust and seo ranking?
Technical SEO | | unikey0 -
AJAX and SEO
Hello team, Need to bounce a question off the group. We have a site that uses the .NET AJAX tool kit to toggle tabs on a page. Each tab has content and the content is drawn on page load. In other words, the content is not from an AJAX call, it is there from the start. The content sits in DIV tags which the javascript toggles - that's all. My customer hired an "SEO Expert" who is telling them that this content is invisible to search engines. I strongly disagree and we're trying to come to a conclusion. I understand that content rendered async via an AJAX call would not be spidered, however just using the AJAX (Javascript) to switch tabs will not affect the spiders finding the content in the markup. Any thoughts?
Technical SEO | | ChrisInColorado0 -
How to find original URLS after Hosting Company added canonical URLs, URL rewrites and duplicate content.
We recently changed hosting companies for our ecommerce website. The hosting company added some functionality such that duplicate content and/or mirrored pages appear in the search engines. To fix this problem, the hosting company created both canonical URLs and URL rewrites. Now, we have page A (which is the original page with all the link juice) and page B (which is the new page with no link juice or SEO value). Both pages have the same content, with different URLs. I understand that a canonical URL is the way to tell the search engines which page is the preferred page in cases of duplicate content and mirrored pages. I also understand that canonical URLs tell the search engine that page B is a copy of page A, but page A is the preferred page to index. The problem we now face is that the hosting company made page A a copy of page B, rather than the other way around. But page A is the original page with the seo value and link juice, while page B is the new page with no value. As a result, the search engines are now prioritizing the newly created page over the original one. I believe the solution is to reverse this and make it so that page B (the new page) is a copy of page A (the original page). Now, I would simply need to put the original URL as the canonical URL for the duplicate pages. The problem is, with all the rewrites and changes in functionality, I no longer know which URLs have the backlinks that are creating this SEO value. I figure if I can find the back links to the original page, then I can find out the original web address of the original pages. My question is, how can I search for back links on the web in such a way that I can figure out the URL that all of these back links are pointing to in order to make that URL the canonical URL for all the new, duplicate pages.
Technical SEO | | CABLES0 -
.lbi file - SEO friendly or not?
Up until yesterday afternoon i had never heard of a .lbi file. It turns out it is a library file used by Adobe Dreamweaver. From what i can tell it works like a client side included but i am unsure of the technology behind it. The issue:
Technical SEO | | kchandler
When running through a recent SEO audit for a new client i found these .lbi files being used all over there site for site wide callouts and even navigation. When viewing this content through firebug or in the browser you can see the executed HTML content but when viewing the source or the page in seo-browser.com the content is nowhere to be seen. So my thought is this is not SEO friendly and is the same as displaying content in any client-side script like JavaScript or JQuery. Any feedback or thoughts on this subject would be awesome, especially if anyone has used these previously. Unfortunately i cannot share the client site but i would be more than happy to answer any questions if more detail is needed. Thanks in advance - Kyle0 -
Regarding Canonical Url
We have a e-commerce website. Our own homegrown:-) We recently visited Google Webmaster tools and could see that Google mention we have double Meta tags for some main and subcategories. Each Product Category on our site have a subcategory/ Sub url - "Bestseller", "On Sale", "just arrived". The sub url is not a really a real category and we can therefore not make totally unique description and title for does urls. domain.com/category domain.com/category/bestseller
Technical SEO | | areygie
domain.com/category/on-sale
domain.com/category/just-arrived We are thinking about 2 solutions. 1. Canonical Url on subcategory pointing to main category.
2. Or add a word bestseller, on sale or just arrived in front of the meta title/description. We can do this from code. I personally opt for option 1. But I am little unsure what is the best way to go. Thanks in advance for your advice0 -
Bit.ly URLs. Are they SEO Friendly?
Are URL shorteners like Bit.ly considered 301 redirects? I was thinking about using them for some longer URL's in press releases but i didn't want to loose any link juice through the service. Thanks for the info! - Kyle
Technical SEO | | kchandler0 -
How can i redirect a url that has % in it?
Google webmaster tools shows a 400 eroor for an old link that contains a 30% off in it. The problem is the % I would like to 301 redirect this link : http://www.geographics.com/Graduation-Stationery,-35%-OFF-Printable-Certificates-Blank-Gift-Certificates/c1353_1354_1359/index.html to http://www.geographics.com/Graduation-Stationery-Printable-Certificates-Blank-Gift-Certificates/c1353_1354_1359/index.html We do not know how to do this in httaccess. Can you please advise? Thanks a lot! Madlena
Technical SEO | | Madlena0 -
301 an old URL with a ? in the URL?
I am redoing a site and the URL's are changing structure. The client's site was in magento and in the store they would get two URLs, for example: /store/categoryname/productname and /store/categoryname/productname?SID=dslkajsfdoiu947598whouieht983hg98 Do I have to 301 redirect both of these URL's to their new counterpart? Both go to the same content but magento seemed to add these SIDs into the navigation and Google has both versions in the index.
Technical SEO | | DanDeceuster0