Solved

Url Rewriting

Posted on 2011-03-25
4
304 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
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 …
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

743 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

13 Experts available now in Live!

Get 1:1 Help Now