Solved

URL Rewriting ASP.NET ISAPI Filter

Posted on 2010-09-15
1
360 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 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)
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…

717 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