Authority of index.html and index.php in Wordpress

Discussion in 'HTML & Website Design' started by wptheme, Nov 24, 2009.

  1. #1
    Hi, I want to ask for example we have wordpress in our website

    http://example.com

    Basically I want a landing page first before going to the site wordpress so I know
    index.html have a higher authority than index.php which is used by wordpress.
    So I created a HTML file index.html where I created the anding page and so that people can link to the index.php
    Problem is when people press the example.com/index.php it just reloads the index.html
    Any help here? Thanks a bunch
     
    wptheme, Nov 24, 2009 IP
  2. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #2
    Wow, that's interesting. You would think that it wouldnt force a redirect like that. Can you replicate the problem in a sub directory?
     
    adbox, Nov 24, 2009 IP
    wptheme likes this.
  3. wptheme

    wptheme Well-Known Member

    Messages:
    4,051
    Likes Received:
    346
    Best Answers:
    0
    Trophy Points:
    180
    #3
    Wel my site is not at a subdirectory. Its the main domain. Hmm.. any suggestions? Or should I do a command html redirect ?
     
    wptheme, Nov 24, 2009 IP
  4. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you have both index.html and index.php rewritten to example.com then you'll need to change the name of index.php to something else... mainpage.php?

    Or, play with your .htaccess file and change the redirecting.

    Most people have a line something like
    RewriteRule ^(.*)/$ /$1.html [L]

    You may have already had it and never saw t before, as you didn't have index.html and index.php both on your system before.
     
    Stomme poes, Nov 24, 2009 IP
    wptheme likes this.
  5. wptheme

    wptheme Well-Known Member

    Messages:
    4,051
    Likes Received:
    346
    Best Answers:
    0
    Trophy Points:
    180
    #5
    I see. Will try this. Thanks everyone. rep+ to all.
     
    wptheme, Nov 24, 2009 IP