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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:49:49+00:00 2026-05-21T06:49:49+00:00

I am running IIS7.5 and the URL Rewrite module. I followed these step by

  • 0

I am running IIS7.5 and the URL Rewrite module.

I followed these step by step instructions to enable user friendly URL’s:

Rule Templates for the URL Rewrite Module – User Friendly URL – rule template

If I enter the URL http://domain.com/default/ instead of http://domain.com/default.aspx the website throws 404: file not found error.

Here are my rewrite rules:

<rewrite>
  <rules>
    <rule name="RedirectUserFriendlyURL1" stopProcessing="true">
      <match url="^demourl\.dev\.asenetechdev1\.com/default\.aspx$" />
      <conditions>
        <add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
      </conditions>
      <action type="Redirect" url="demourl.dev.asenetechdev1.com/default" 
              appendQueryString="false" />
    </rule>
    <rule name="RewriteUserFriendlyURL1" stopProcessing="true">
      <match url="^demourl\.dev\.asenetechdev1\.com/default$" />
      <conditions>
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="false" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="false" />
      </conditions>
      <action type="Rewrite" url="demourl.dev.asenetechdev1.com/default.aspx" />
    </rule>
  </rules>
  <outboundRules>
    <rule name="OutboundRewriteUserFriendlyURL1" preCondition="ResponseIsHtml1">
      <match filterByTags="A, Form, Img"
             pattern="^(.*)demourl\.dev\.asenetechdev1\.com/default\.aspx$" />
      <action type="Rewrite" value="{R:1}/ demourl.dev.asenetechdev1.com/default" />
    </rule>
    <preConditions>
      <preCondition name="ResponseIsHtml1">
        <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
      </preCondition>
    </preConditions>
  </outboundRules>
</rewrite>

I also tried using Intelligencia.UrlRewriter with this. But I am able to generate friendly urls on local as well as on server, but I want extensionless url, which is working ok on my local server, but not on the live server.

  • 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-21T06:49:49+00:00Added an answer on May 21, 2026 at 6:49 am

    Your pattern is currently not matching /default/. It is only matching /default

    Changing

    <match url="^demourl\.dev\.asenetechdev1\.com/default$" />
    

    to

    <match url="^demourl\.dev\.asenetechdev1\.com/default/{0,1}$" />
    

    should do it.

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

Sidebar

Related Questions

I've got IIS7.5 running, and I'm trying to match an explicit URL. The following
I've got an ASP .Net application running on IIS7. I'm using the current url
I am running WordPress on Win2k8/IIS7 (using httpcache, fastCgi & UrlRewriter 2.0) installed via
I've got a web server running IIS7 and I just updated to PHP 5.3.
i am setting up cakephp app on a windows server running iis7. PHP is
We have an application that has a WCF service (*.svc) running on IIS7 and
We have a asp.net 2.0 web application that is running on IIS7. It is
I'm managing an ASP 2.0 site that I didn't create running under IIS7. I
I have publish my website in IIS7. It is running in DefaultAppPool. The Identity
We have an ASP.NET 3.5 app running in IIS6 we're migrating to IIS7 &

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.