0

I want to do Url rewriting in sharepoint . If anyone is having any idea how to achieve this in sharepoint.

Thr url rewrite would be like.. /www.ABC.com instead of www.ABC.com/pages/default.aspx and also like ww.ABC.com/ED.html instead of www.ABC.com/ED.aspx

Thanks, PS

1
  • I still didn't get the answer of my question thats y I didn't marked it as answered...last post is still mine and I m having some issues
    – user219725
    Jan 23, 2010 at 19:43

1 Answer 1

3

You'll need to implement an IHttpModule and to register it in your web.config /configuration/system.web/httpModules element, before SPRequest declaration.

Good luck!

EDIT: This article explains what you need to know: A Complete URL Rewriting Solution for ASP.NET 2.0. You can skip XML parametrization code.

7
  • Thanks Rubens for the reply but I was thinking to hear some more help related to it as I know I hv to do this by creating httpmodule and aslso making changes in the config sections....but I didn't get any gud link or article about sharepoint url rewriting....
    – user219725
    Dec 15, 2009 at 21:43
  • And probably you wont find more data; remove Sharepoint from equation and to write a IHttpModule implementation; later add it to Sharepoint Dec 15, 2009 at 22:36
  • Spot on. I created a commercial product that does exactly what the orignal poster asks but it is not available yet. This becomes significantly more challenging in a farm with more than one web front end (WFE) server. Dec 15, 2009 at 23:57
  • THanks for the reply guys.... I found some blogs related to asp.net url rewriting and they are using context.beginrequest . Could you tell me what modifications I need to make as far as sharepoint is concerned.I m new to sharepoint so don't know how to do this thing in sharepoint. I found this blog simple-talk.com/dotnet/asp.net/… and I wanted to know if i can use same with sharepoint rewriting
    – user219725
    Dec 16, 2009 at 15:47
  • under sharepoint, you just need to add your httpmodule BEFORE SPRequest on your web.config Dec 16, 2009 at 17:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.