Solved

URL Rewriting ASP.NET ISAPI Filter

Posted on 2010-09-15
1
349 Views
Last Modified: 2012-05-10
Im getting stuck with some URL rewrites.

Here are some examples from the module:
#RewriteRule  ^/f.ad\?(.*)            /filtered.htm
#RewriteRule  ^/j.ad\?(.*)            /filtered.htm
#RewriteRule  ^/ix.e\?(.*)            /filtered.htm
# empty URL gets mapped to "index1.html"  
#RewriteRule  ^/$                      /index1.html
# RewriteRule  ^/(.*)/eliminateme/(.*)  /$1/$2
# URL modified by URLSCAN gets mapped to "rejected.htm"
#RewriteRule  ^/\<Rejected\-By\-UrlScan\>(.*)$                      /rejected.htm
#RewriteRule  ^/eliminatethis/(.*)       /$1
#RewriteRule  ^/[oO]ldUrl/(.*)           /ThatUrlNoLongerExists.htm

My rewrite rule needs to do the following:
http://mysite.com/go/page1  /some_page_.aspx
http://mysite.com/go/another_page /some_otherpage.aspx

basically i need to create a rule for each /go/ so when we update our site links from emails and such do not break.

The rule i tried was:
RewriteRule  ^/go/patient_testimonials(.*)      /experience_testimonials.aspx

This did not work.

Any advise?
0
Comment
Question by:HADDADD3
1 Comment
 
LVL 14

Accepted Solution

by:
Dhanasekaran Sengodan earned 500 total points
ID: 33684889
Hi
u need somthing called URL Routing and not URL ReWriting
url rewriting is to change the url how it looks and make it more friendly

for you u need url routing
plz see this

http://msdn.microsoft.com/en-us/library/cc668201.aspx
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

757 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