Solved

Url Rewriting

Posted on 2011-03-25
4
316 Views
Last Modified: 2012-05-11
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

0
Comment
Question by:Simbios
  • 2
4 Comments
 
LVL 7

Accepted Solution

by:
dimaj earned 500 total points
ID: 35219334
0
 
LVL 7

Expert Comment

by:nbove
ID: 35219343
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.
0
 

Author Comment

by:Simbios
ID: 35219366
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.
0
 

Author Comment

by:Simbios
ID: 35223603
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?
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
New to SOAP and need some direction 10 47
Get id from json Data with NewtonSoft 3 34
Auto refresh part of an MVC5 View 7 61
Host asp.net pages 5 25
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now