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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:07:24+00:00 2026-05-17T17:07:24+00:00

We have a classic VBScript default.asp page in the root of our site. (This

  • 0

We have a classic VBScript “default.asp” page in the root of our site. (This is a heavy, legacy page and converting it is not an option right now.) We also have a new ASP.NET MVC 2 application we want to host on the same site. Everything actually works great together! Except for one thing: requests to the root of the site (e.g., /) get picked up by the MVC routing (which then wants to display the HomeController’s Index action) instead of letting the default.asp page take the request!

This is what I would like:
http://www.example.com/ <- should execute the classic default.asp page, not /Home/Index!

I can’t figure out how to not execute HomeController.Index(). If I remove the HomeController, I get an error. If I try to IgnoreRoute(“”) I get an error. I have even changed the priority/order of the “default document” in IIS for this site to treat “default.asp” as the preferred document. I’ve even deleted the dummy MVC “default.aspx” page out of the root, and still the MVC routing is “stealing” requests for the root of the site.

The temporary solution is for me to have HomeController.Index redirect the user back to “default.asp”. This works, but then it shows up ugly and visible in the address bar,
http://www.example.com/default.asp <- not what I want to show.

Any suggestions/answers on how to get these both to co-exist? Perhaps something I can add to web.config to make this specific exception for the homepage? Thank you!

UPDATE

I apologize for the delay in getting back to this but it went on the back burner for a while and I honestly almost forgot about this; however I did manage to get this working! I’d like to give credit to both Chris Marisic and Chance, since combined they helped me figure this out.

The problem was that sure enough, it seems there was a default route (as Chance suggested in a comment) that was catching these requests to the site root.

So, by tweaking this, and also adding routes.IgnoreRoute(""); (empty-string) as the first rule in my routing list, this now works!

Thank you everyone for your help!

  • 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-17T17:07:24+00:00Added an answer on May 17, 2026 at 5:07 pm

    You want to add the home route to the ignore route list.

    Something along the lines of

    routes.IgnoreRoute("/");

    or

    routes.IgnoreRoute("/default.asp");

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

Sidebar

Related Questions

I have this classic ASP site which has been working fine until we updated
I'm using VBScript (ASP Classic) and SQL Server; I'm trying to have a section
I have a couple of questions regarding VBScript and ASP Classic: What is the
I have a .NET assembly which I am accessing from VBScript (classic ASP) via
I have a classic ASP/VBScript application that needs to call methods in a Java
I have a classic asp webpage written in vbscript that outputs the results from
I'm working on a Classic ASP (VBScript) site that's running on a Windows 2008
We have a classic ASP application that simply works and we have been loathe
I have a large classic ASP app that I have to maintain, and I
We have a large ASP classic code base but I'm looking to do future

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.