Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-10-16
4
Medium Priority
?
394 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 500 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
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…

660 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