Solved

URL Rewrite in ASP.net

Posted on 2009-07-16
3
569 Views
Last Modified: 2013-12-09
Hi All

I like to know how to rewrite url for

http://www.domain.com/test.asp?code=213

To
http://www.domain.com/test.aspx?code=213

I am not able to get query string value.

I am writing url as follows

<rule name="Rule1" enabled="true">
                    <match url="^test.asp?code=([^/]*)$" />
                    <conditions logicalGrouping="MatchAll" />
                    <action type="Rewrite" url="test.aspx?code={R:1}" />
                </rule>
0
Comment
Question by:csofttech
3 Comments
 
LVL 7

Accepted Solution

by:
Phateon earned 125 total points
ID: 24871111
0
 
LVL 3

Assisted Solution

by:ongngochoang
ongngochoang earned 125 total points
ID: 24896859
http://urlrewriter.net/ is a library can help you
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

808 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