Results 1 to 2 of 2

Thread: PHP redirect is just a blank page

  1. #1
    Join Date
    Sep 2010
    Posts
    2

    PHP redirect is just a blank page

    I'm new here, but I figured you guys would know why this isn't working.

    I have a site http://mysite.com but when someone types this in I want it to go to http://mysite.com/folder/

    I have tried and tried to get the php header redirect to work, but all I get is a blank page.

    Here is what I have:
    an index.html file with this in it
    <?php
    header("Location: http://mysite.com/folder/");
    ?>

    There is nothing else in there at all, not even a space. Any help on this would be awesome.

    Thanks

  2. #2
    Join Date
    Sep 2010
    Posts
    2
    Nevermind, I was using an html file. I just changed it from index.html to index.php and now it's working fine.

Similar Threads

  1. CMS advice (php)
    By Littlened in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 07 Jul 2007, 05:02 AM
  2. Blank Web Page is displayed when a Link on the main page is clicked
    By Balasubramaniam in forum Web Design, HTML Reference and CSS
    Replies: 0
    Last Post: 15 Mar 2006, 03:47 AM

Posting Permissions

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