All-ASP redirect

Results 1 to 2 of 2

Thread: All-ASP redirect

  1. #1
    Jeffy Guest

    Default All-ASP redirect

    I have several domain names pointing to the same server. I&#039ve traditionally<BR>used the following to point a user to a directory based on the domain name<BR>used:<BR><BR>if (document.URL) {<BR> if (document.URL.indexOf("rollercoaster") != -1) {<BR> window.location.href = &#039http://www.rollercoaster.nu/thepoint/&#039;<BR> }<BR>}<BR><BR>How would I do the same thing as an ASP page, so that the user wouldn&#039t even<BR>get the chance to see the page work and have to rely on the browser?<BR><BR>I&#039m in a virtual environment, so I can&#039t map the domains to different<BR>directories.<BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    5

    Default RE: All-ASP redirect

    make sure your page is an ASP page and then<BR>add the following to the top of the page<BR>&#060;%response.buffer=true%&#062;<BR>and then<BR>&#060;% response.redirect("your URL")%&#062;

Posting Permissions

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