Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2007
    Thanked 0 Times in 0 Posts

    php home page question

    Because my site is dynamic, the majority of the pages have a php extension. I am under the impression that search engines and such look for 'index.html' and so have done an index page that redirects to the home page which is php. I've been criticised in another part of codingforums for this. Am I right in my assumption or is there a correct way to do things. The site is myverdict.net, by the way.
    Thanks in advance.

  • #2
    Super Moderator
    Join Date
    May 2002
    Perth Australia
    Thanked 101 Times in 99 Posts
    Search engines come to your page either via links from other pages or straight to your web root, if the first page that displays in index.php then thats what the search engines will see.

    that said .... I just read the other thread and I don't personally see the point of showing a redirection page , waiting for 5 seconds etc .. just redirect immediately (refresh 0) or edit your .htaccess file if it exists (or create one if not) and add
    DirectoryIndex index.php
    to it, this will make index.php the default page, you can also set this in some popular control panels.
    resistance is...

    MVC is the current buzz in web application architectures. It comes from event-driven desktop application design and doesn't fit into web application design very well. But luckily nobody really knows what MVC means, so we can call our presentation layer separation mechanism MVC and move on. (Rasmus Lerdorf)

  • #3
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Thanked 637 Times in 625 Posts
    I really really hate "you will be redirected in 5 seconds or whenever we feel like you've suffered long enough" messages. Just redirect me already.


    Posting Permissions

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