Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

URL Rewriting ASP.NET ISAPI Filter

Posted on 2010-09-15
1
Medium Priority
?
371 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…

610 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