Forum Discussion
Sharepoint SEO / Lowercase URLs
I have a Microsoft Sharepoint environment which is published to the internet. One of my on-going headaches is the analytics report separates pages which have different case as unique. For example a URI path of
/myDirectory/Page.html != /mydirectory/page.html
.
Is there a sed equivalent for performing the sed string:
%s/.*/\L&/g
in stream expression to rewrite the URL provided from the server to lowercase? I know that I need to act on the HTTP_RESPONSE{} and rewrite the response of the server back to lowercase. All of the documentation I am reading about streams, is replace A with B. The documentation is very terse referencing the capabilities of stream expressions. What I can't wrap my head around is [HTTP::uri]
or [HTTP:path]
are not valid in RULE_INIT{}
or HTTP_RESPONSE{}
. I am at a loss on how to pull in the response from the answering server to rewrite the request.
Using URLRewrite 2.0 from testing scenarios broke sharepoint publishing sites. If you or someone you know are using it for such a purpose, suggested setup would be greatly appreciated.
Any suggestions are welcome.
References: SOL7027, iRules Set URI To Lower Case, Forcing Lowercase Only Works The First Time, URL Rewrite Multiple
- Scott_McCullo13Historic F5 Account
You can add custom filters in Google Analytics that allow you to convert all incoming data to lowercase:
http://dev.ektron.com/kb_article.aspx?id=30420
This will only apply to new data after the filter is applied. This is probably much easier than trying to convert URLs through an irule.
- hooleylistCirrostratus
I like Scott's suggestion.
You could rewrite the server response content, but currently you'd need to parse each redirect and text or html response, parse out the URI from local URLs and set them to lowercase. HTTP::uri and HTTP::path do not work on the response events--they're designed for parsing the URI and path from request URIs only.
Aaron
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com