Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 691219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T02:31:05+00:00 2026-05-14T02:31:05+00:00

I am using the Intelligencia URL rewriter in my asp.net web application. I use

  • 0

I am using the Intelligencia URL rewriter in my asp.net web application.
I use the web.config mappings

I’m trying to map the following url:

http://www.mydomain.com/product-deals/manufacturer-model_PRODUCTId.aspx

To:

http://www.mydomain.com/ProductInfo.aspx?productID=xxx

obviously in the above example, xxx is replaced from the “productId” from the “friendly” url.

In my web.config, I’ve got so far:

<rewrite url="~/contract-deals/([\w-_]+)/_(.+).aspx" to="~/ProductInfo.aspx?productId=$1"/>

This isn’t working however.

I need the correct regex to use for my requirements (regex really isn’t my strong point!!)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T02:31:06+00:00Added an answer on May 14, 2026 at 2:31 am

    One problem is that you have product-deals in your sample and contract-deals in the regex.

    Next, your regex has an extra slash, and you don’t escape the dot (though it can match a dot anyway). Also, $1 refers to the first capturing group, which in your case is “manufacturer-model”.

    This regex should get you what you want:

    product-deals/[\w_-]+_(.+)\.aspx
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using Intelligencia.UrlRewriter.dll in asp.net for url re-writting, but i don't know about
I am using Intelligencia for url rewriting in my asp.net project. I have solved
I switched from Intelligencia's UrlRewriter to the new web forms routing in ASP.NET 4.0.
We are using the Intelligencia URLRewriting module for asp.net with version 2.0 of the
I'm using Intelligencia's UrlRewriter in my application and I'm having a problem where the
I'm using Intelligencia url rewriting currently but have just leased an IIS 7.5 server
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using C# .NET 3.5 and WCF, I'm trying to write out some of the
I am using urlrewriter.net my intended url is like /articles/3/name_of_article/articles.aspx & actual is articles.aspx?article
I am using Intelligencia for url rewirting. My problem is after url rewirting images

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.