Test site using alternate URL and Disabling live URL

Discussion in 'Hosting Services / Control Panel' started by marcovan79, Dec 3, 2007.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi all,

    I have uploaded my site with no problems.

    I now want to be able to test my site using the alternate URL but I wish for the live URL to be disabled.
    At the moment both URL's are working, however, I do not wish the site to go live yet.

    The only way I could do it was to stop IIS in the IIS Manager but Im not able to use the alternate URL when I do this.

    Can anyone suggest a way of disabling the Live URL and still allow me to test my site.

    THanks in advance

    Marc
     
  2. Joseph Jun

    Joseph Jun DiscountASP.NET Staff

    Hi Marc,

    What you might consider doing is using Request.ServerVariables('SERVER_NAME') if you're using an ASP or ASP.NET site and just perform a conditional redirect to a 'coming soon' page if the URL of the live site is used.

    Winston

    DiscountASP.NET
     
  3. Thanks winston for the quick reply!

    I am using an asp.net site.

    When using the Request.ServerVariables("SERVER_NAME") should this be embeded in the start up page (aspx page)of the web site?

    Thanks again

    Marc
     
  4. Thanks for the help.


    I created a 'Coming Soon' page and placed the Redirection in my start up page......
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page