+ Reply to Thread
Results 1 to 4 of 4

Thread: Re-direct?

  1. #1
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    Re-direct?

    Hi All,

    Since I have multiple virtual directories on a parent, is there a way for me to re-direct one site to another page? Ex: one site is setup to use default.asp but i am wanting to do some work on this site and don't want any users to see errors and such, so is there a way to re-direct them to a Under Construction page?

    Rebelle

  2. #2
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    I'm not sure if there is a more advanced way, but if you create a page called index.html and put the under construction message on it, then in IIS, set the priority of index.html higher than default.asp, you should be able to acheive this.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  3. #3
    Barn Legend Rebelle will become famous soon enough Rebelle's Avatar
    Join Date
    Mar 2008
    Posts
    1,522
    Rep Power
    5

    So when doing that, if they go to http:\\test\testsite\default.asp it will go to http:\\test\testsite\index.asp ?

  4. #4
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    No, only if going to: http:\\test\testsite\

    If you need to prevent them from going to a specific page, just use ASP code to redirect them to the page. You could use a conditional based off of your Windows logon, for example.

    Code:
    If Request.ServerVariables("REMOTE_USER") <> "Domain\UserName" Then
        Response.Redirect "construction.asp"
    End If
    
    If REMOTE_USER doesn't work, you can try LOGON_USER.
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO