?
Solved

URL Rewriting ASP.NET ISAPI Filter

Posted on 2010-09-15
1
Medium Priority
?
364 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
Dhanasekaran Sengodan earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

752 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