Forum Discussion

rkrenzis's avatar
rkrenzis
Icon for Nimbostratus rankNimbostratus
Aug 26, 2013

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

2 Replies

  • 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