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

  • Home
  • SEARCH
  • 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 7512327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:49:53+00:00 2026-05-29T23:49:53+00:00

I have created and host nvc3 web app now problem is when I open

  • 0

I have created and host nvc3 web app
now problem is when I open my www.abc.com
it is opening index.cshtml i.e home page of mvc web app

but I dont want that to be open when I open www.abc.com
I have one static page called index.htm should be open first

in mvc3 Global.asax code:

  public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                "Default", // Route name
                "{controller}/{action}/{id}", // URL with parameters
                new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
            );

        }

How can I render to http://www.abc.com/mypage.html ?
what should I please 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-29T23:49:54+00:00Added an answer on May 29, 2026 at 11:49 pm

    ashuthinks,

    Based on your revised comments for the question. If you just want to show the ‘Under contruction’ type page with no links, then you can modify the web.config and add an app_offline.htm file. here’s what those changes would look like:

    web.config (bare bones):

    <?xml version="1.0"?>
    <configuration>
        <system.webServer>
            <modules runAllManagedModulesForAllRequests="true" />
        </system.webServer>
    </configuration>
    

    app_offline.htm:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head>
    <title>Your site title</title>
    </head>
    <body>
      <div>
        <span>Your Company name</span>
        <h1>Sorry, server maintenance in progress </h1> 
        <h2>Please contact <a href="mailto:mycontact@mycompany.com">John Doe</a> on 000 123 456789 for further information</h2>
      </div>
    </body>
    </html>
    

    when you need to put the site live, simply rename the above files to web.config_offline and app_offline.htm_offline and bring your ‘normal’ web.config into play. There are of course many ways to skin this cat but this has worked well with previous projects that I’ve worked on.

    see:

    http://weblogs.asp.net/scottgu/archive/2006/04/09/442332.aspx

    for further details.

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

Sidebar

Related Questions

I have created simple Java Dynamic Web project in Eclipse. I host my project
I have created a tab host. Now when I set the background of each
I have created an svn repo on my web host server and successfully commit
I have created ASP.net Web application which uses Crystal Report to show reports. Now
I have an object created in a host application and can access it remotely
I have created a PHP-script to update a web server that is live inside
I have created a simple web service called TimeServerBean . It's working properly, the
I have created a drupal website on an address A ( gn.christophemazuyet.com ) and
I have created a new project in Zend. Now it runs on the settings
I have created three EC2 instances, two of instances are web servers and one

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.