Page Redirect Blocked by FireFox

Discussion in 'DNS/Domain names' started by Pyronaught, Apr 14, 2014.

  1. My app resides in a subfolder that is one level off the root directory, which I have setup in the application starting point already. When someone goes to mydomain.com, I need to redirect to mydomain.com/subfolder automatically. Currently I am doing this using a default.htm file in the root directory that contains the following line of code:

    <meta HTTP-EQUIV="REFRESH" content="0; url=/subfolder">

    The problem with this method is that the default security settings in FireFox will block the redirect and the user has to click an Allow button to get there, which is annoying. IE does not have this problem. Is there a way to auto redirect without triggering the FireFox problem and without the user having to modify their FireFox settings?
     
  2. FredC

    FredC Winhost Staff

    Do the redirection using server side code.

    For example, create an index page called index.aspx and put the following in the page

    <%

    Response.Redirect("/subfolder")

    %>
     
    Michael likes this.
  3. That worked perfectly, thanks!
     
    Michael likes this.
  4. FredC

    FredC Winhost Staff

    cool.. glad to be able to help
     

Share This Page