I need these files into a index.php How do I?

Discussion in 'PHP' started by Browning, Dec 31, 2007.

  1. #1
    Oredered a script that came in 3 files. header.html, footer.html and a .cgi

    The design only works when I type

    www.url.com/filename.cgi

    How do I either put this all in a index.php file so it will show with www.url.com or make the .cgi show up as default without having to type the full url to the file
     
    Browning, Dec 31, 2007 IP
  2. blueparukia

    blueparukia Well-Known Member

    Messages:
    1,564
    Likes Received:
    71
    Best Answers:
    7
    Trophy Points:
    160
    #2
    Add to .htaccess:

    
    DirectoryIndex filename.cgi
    
    Code (markup):
     
    blueparukia, Dec 31, 2007 IP
  3. hogan_h

    hogan_h Peon

    Messages:
    199
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #3
    You could try putting this into your .htaccess file

    RewriteEngine on
    RewriteRule ^(/)?$ filename.cgi
     
    hogan_h, Dec 31, 2007 IP
  4. Browning

    Browning Banned

    Messages:
    1,928
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4

    That done it:) Thanks.

    Now I just need to try and make it look like something lol

    popnewsdaily.com
     
    Browning, Dec 31, 2007 IP