Solved

How do you set up a regular expression to map sitemap.xml to sitemap.aspx

Posted on 2008-10-16
4
317 Views
Last Modified: 2012-06-22
I was wondering how you would set up a regular expression to map sitemap.xml to sitemap.aspx.
0
Comment
Question by:JDEE8297
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:aognenoff
ID: 22737474
Need some clarification on what you're asking...

What is your end result? Are you trying to take any request for sitemap.xml and make it load sitemap.aspx?  What are you trying to map this in? Some ISAPI extension for IIS?  Where are you thinking regular expressions play in this scenario?
0
 

Author Comment

by:JDEE8297
ID: 22737521
sorry should have given more information, i am using urlrewriter component to rewrite urls, so if someone types in sitemap.xml on our site (which is iis based) I want them to be redirected to sitemap.aspx.
0
 
LVL 1

Accepted Solution

by:
aognenoff earned 125 total points
ID: 22737630
Try this as your rule:



Not quite sure if that will work but it's worth a shot.
0
 

Author Closing Comment

by:JDEE8297
ID: 31507018
thank you.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

744 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

12 Experts available now in Live!

Get 1:1 Help Now