Solved

URL Rewriting ASP.NET ISAPI Filter

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

821 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