SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    Addict obliquegeek's Avatar
    Join Date
    Aug 2004
    Location
    England
    Posts
    340
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Quick redirection question...

    Hi, I'm just setting up folderblog (a small flat-file php script) as my photoblog to display some of my pics. Everything works fine except that the main page for the script is called 'fb.php' (instead of 'index.php') which means when someone types in the website address they get nothing or an error unless they add the 'fb' bit.

    I've put a JavaScript redirect into a blank page and named it 'index.php' which is fine for a minute but obviously not a solution. Which is why I'm here. Is there another way of doing something similar only server side?
    "Everything should be as simple as possible,
    but no simpler" - Albert Einstein

  2. #2
    He's No Good To Me Dead silver trophybronze trophy stymiee's Avatar
    Join Date
    Feb 2003
    Location
    Slave I
    Posts
    23,449
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Use a 301 redirect in .htaccess.

  3. #3
    Addict obliquegeek's Avatar
    Join Date
    Aug 2004
    Location
    England
    Posts
    340
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers stymiee, that sounds perfect, I'll check it out.

    Does anyone know of any other simple photoblog style scripts while I'm here? Folderblog is a bit of a mess in places.
    Last edited by obliquegeek; Jun 7, 2006 at 16:43. Reason: my spelling again!
    "Everything should be as simple as possible,
    but no simpler" - Albert Einstein


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
  •