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 6546781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:45:01+00:00 2026-05-25T11:45:01+00:00

How can I use an ampersand ( & ) in my url rewrite rules

  • 0

How can I use an ampersand (&) in my url rewrite rules in the web.config file?

I want to rewrite the url:

http://www.foo.com/index.asp?SomeParameter=SomeValue&SomeId=00

to:

http://www.foo.com/Section/Page

I wrote the following rule in my web.config:

    <rule name="RuleName" stopProcessing="true">
      <match url="^index.asp?SomeParameter=SomeValue&SomeId=00" ignoreCase="true" />
      <action type="Redirect" url="Section/Page"  appendQueryString="false" />
    </rule>

But I’m having problems with that Ampersand (&) in the input url. When trying to rewrite I Get:

The requested page cannot be accessed because the related
configuration data for the page is invalid.

I Tried to parse the ampersand to %26, but I get the same errror.

  • 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-25T11:45:02+00:00Added an answer on May 25, 2026 at 11:45 am

    Try using the HTML ampersand character code &amp;

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a web site which uses wp-cumulus on its home http://www.roytanck.com/2008/03/06/wordpress-plugin-wp-cumulus-flash-based-tag-cloud/ it's a
You can use App.config; but it only supports key/value pairs. You can use .Net
You can use command lsof to get file descriptors for all running processes, but
i'm developing cakephp application. i need some specific characters in url, like & (ampersand),
just a simple link with parameters <a href=http://domainame.com/?bla=ble&bli=blo>hey!</a> would make the w3c validator jump
Can i use php to convert video file to .flv or .swf file ...
I can use XDocument to build the following file which works fine : XDocument
I can use follow css code to do some simple animation, but I want
How can I write a c# regular expression to use for replacing an ampersand
I can use ErrorMessageResourceName and ErrorMessageResourceType to translate rules into my language. But how

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.