Simbios
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/quest iontitle
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/quest
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
My rules as far as I know cant be on a config file because they are too specific.
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&A rticleTile =LorepIpsu m
so I need to convert it to
/articles/LorepIpsum
it should be easier this way?
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&A
so I need to convert it to
/articles/LorepIpsum
it should be easier this way?