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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:59:48+00:00 2026-05-24T15:59:48+00:00

i am currently using IIS7’s Url Re-write module, but the main loophole of using

  • 0

i am currently using IIS7’s Url Re-write module, but the main loophole of using the IIS7’s url re-write module, is that i have to write rule for all the page,which i want to use on the website, i want to use a comman rule and redirect it to particular page (say homepage) and using global.asax i can redirect it to desired page…

Is it possible with url re-write or is there any tool available i can use for this purpose, or a code sample that could help me doing this.

i dont want extension in the url.

i have pages like index.aspx, news.aspx, artists.aspx, lessons.aspx… i want the urls like index, news, lessons, artists, i created a rule in web.config like

< rewrite>  
 < rules>  
   < rule name="urlType1">  
     < match url="^(\w*)" />  
     < action type="Rewrite" url="default.aspx" appendQueryString="false" />  
   < /rule>  
 < /rules>  
< /rewrite>  

this will land any page to default.aspx, and then using rawUrl in the global.asax, i am checking for the page like if user has entered “news” then i rewrite to news.aspx

Hope this has helped.

  • 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-24T15:59:49+00:00Added an answer on May 24, 2026 at 3:59 pm

    You can do just as you’re suggesting in your question–redirect all requests to a single URL:

    And then in your Global.asax you could call Server.Transfer( “~/file1.aspx” ) to forward the request to a particular file.

    Or, you could transfer directly from your URL Rewrite rule and skip further processing in your Global.asax file. For instance, this rule will read the incoming URL that has no file extention, and then forward the request on to a file that has a file extension:

            <rule name="Append a file extension to all requests discard querystring" stopProcessing="true">
                <match url="^(.*)\?" />
                <action type="Rewrite" url="{R:1}.aspx" />
            </rule>
    

    Read more about URL Rewriting rules on Ruslan Yakushev’s blog at http://ruslany.net/.

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

Sidebar

Related Questions

I'm using Intelligencia url rewriting currently but have just leased an IIS 7.5 server
We have a service that is currently using basicHttpBinding. We have the flexibility to
I have an IIS7 application that is using the .net 4.0 framework. The application
Currently using System.Web.UI.WebControls.FileUpload wrapped in our own control. We have licenses for Telerik. I
Currently using Google Analytics as a supplement to our paid tracking software, but neither
Currently using Xcode 4.2 and I have two view controllers (1 and 2). I
I'm currently using a Camera Chooser on my app, but want my user to
I have a large website that seems to be sucking up all the memory
I have an application that relies heavily on charting and currently the charts will
I currently have a website (ASP.NET 3.5, IIS 7.0) that allows users to upload

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.