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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:09:46+00:00 2026-05-23T07:09:46+00:00

I want to rewrite: Test.php to Default.asp So I use the rule: <rewrite url=~/Test.php

  • 0

I want to rewrite:

Test.php to Default.asp

So I use the rule:

<rewrite url="~/Test.php" to="~/default.asp" />

But that rule gives a 404.

However this rule works fine:

<rewrite url="~/default.aspx" to="~/default.asp" />

But this rule 404’s:

<rewrite url="~/Test" to="~/default.asp" />

My web.config:

<?xml version="1.0" encoding="UTF-8"?>

<configuration>

    <configSections>
        <section name="rewriter"
                 requirePermission="false"
                 type="Intelligencia.UrlRewriter.Configuration.RewriterConfigurationSectionHandler, Intelligencia.UrlRewriter" />
    </configSections>

    <system.web>

        <httpModules>
            <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule, Intelligencia.UrlRewriter" />
        </httpModules>

    </system.web>

    <system.webServer>

        <modules runAllManagedModulesForAllRequests="true">
            <add name="UrlRewriter" type="Intelligencia.UrlRewriter.RewriterHttpModule" />
        </modules>

        <validation validateIntegratedModeConfiguration="false" />

    </system.webServer>

    <rewriter>
        <rewrite url="~/Test.php" to="~/default.asp" />
    </rewriter>

</configuration>
  • 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-23T07:09:46+00:00Added an answer on May 23, 2026 at 7:09 am

    What is PHP being handled by?

    Per the setup documentation you need to ensure that the PHP extension is being handled by ASP.NET. In addition, if IIS is checking to see if the file exists before handing it off to ASP.NET you’d potentially be missing this as well.

    Also, based on your system.webServer addition (which isn’t detailed on the module’s site), can we assume Server 2008? If so, can I recommend URL Rewrite instead?

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

Sidebar

Related Questions

I want to rewrite requests like: mydomain.com/this/is/a/test to: mydomain.com/url.php?i=this,is,a,test How can I write a
I have a URL that looks like this http://domain.com/index.php/view/test . How do i rewrite
I want to do Url rewrite in Tomcat using UrlRewriteFilter This is the rule
I have this rewrite rule that turns foo.com/test (or foo.com/test/) into foo.com/test.txt: RewriteRule ^test/?$
I have URLs like /?test that I want to rewrite to /page.php?page=test I tried
I want to have use something like this: http://localhost/test/dummy instead of this: http://localhost/test/profile.php?id=dummy I
I'm using this tester for url mod_rewrite test: http://martinmelin.se/rewrite-rule-tester/ When I write something like
I want to rewrite this query so that if @UserName gets passed in a
I want to apply a rewrite condition, so that only *.php files are affected:
Currently this is my .htaccess RewriteEngine on #rewrite the url's RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]

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.