SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: php main page

Hybrid View

  1. #1
    SitePoint Zealot
    Join Date
    Oct 2000
    Posts
    146
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How do I make a php file the main page. With a .html extension all you have to do is go to the root of the directory and it will show the index page. Do you have to do anything differently with a .php extension? I notice with phpmyadmin, when I go to the root of the directory that it shows all the filenames and index.php doesn't default as the main page.
    Thanks. I hope I made sence...

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2000
    Location
    Warwickshire, England
    Posts
    557
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You need to either restart apache with the following additional line in /etc/httpd/conf/httpd.conf
    DirectoryIndex index.php3

    or (the easier method) ...
    make a .htaccess file with the following in and upload in ASCII mode to the root of your account.
    DirectoryIndex index.php3

    This assumes your host allows the use of .htaccess files

    Peter

  3. #3
    SitePoint Evangelist
    Join Date
    May 2000
    Location
    Canada
    Posts
    533
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What Peter said is the best thing to do, if you arent able to work an .htaccess file, ask your host to set it up specifically for your account in their apache configuration .. i've had to setup specific changes for clients in the past

    ---------------------
    SitePoint Community Moderator
    myONLYhost.com: when you want something MORE


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
  •