Solved

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

Posted on 2008-10-16
4
372 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
[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
  • 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…

739 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