may be redirect

Discussion in 'PHP' started by linkexchange1984, May 27, 2008.

  1. #1
    linkexchange1984, May 27, 2008 IP
  2. webmaster_TSU

    webmaster_TSU Peon

    Messages:
    449
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    In debo I'd just make an index.html with

    <script type="text/javascript">
    <!--
    window.location = "http://www.demo.com/debo/demo1.php"
    //-->
    </script>
    Code (markup):
    Would that work?
     
    webmaster_TSU, May 27, 2008 IP
  3. pe7er

    pe7er Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You should add the demo1.php as default page.
    Do you have an Apache webserver, and are .htaccess files allowed?
    Put an .htaccess file in the directory http://www.demo.com/debo/
    DirectoryIndex demo1.php index.php index.html

    Alternatively (a workaround): put a index.html in the http://www.demo.com/debo/ directory that contains a meta refresh tag that redirects automatically to http://www.demo.com/debo/demo1.php
    See: http://en.wikipedia.org/wiki/Meta_refresh
     
    pe7er, May 27, 2008 IP