Link to home
Start Free TrialLog in
Avatar of Simbios
SimbiosFlag for Afghanistan

asked on

Url Rewriting

I have a sharepoint 2010 site with lots of pages like
articledetails.aspx?id=1
qadetails.tasp?id=1

etc, etc

I want that the search engines and the user sees in the browser instead of that, something like

/articles/articletitle
/questionsandanswers/questiontitle

ASKER CERTIFIED SOLUTION
Avatar of dimaj
dimaj
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This would largely be accomplished by setting default pages for directories in IIS and modifying your web pages to inspect form post data instead of inspecting the query string.
Avatar of Simbios

ASKER

the problem is that the title of the article or the title of the question is on a sharepoint list, so I need to query the database to know the title and then use it on the url rewrites, I dont really understand about httpmodules ,where can I put the code to query the sharepoint list?

My rules as far as I know cant be on a config file because they are too specific.
Avatar of Simbios

ASKER

I got an idea to simplify the Url Rewritng

On the pages that point to the details pages I decided to pass the title of the article as a querystring

for example

 
articledetails.aspx?id=1&ArticleTile=LorepIpsum

so I need to convert it to

/articles/LorepIpsum

 

it should be easier this way?