Best Way to Link to Your HomePage internally with relative paths?

Discussion in 'HTML & Website Design' started by sem-profiteer, Sep 14, 2012.

  1. #1
    I'm looking for thoughts on the best way to link to your home page within your website to meet googles duplicate content requirements.

    domain.com
    domain.com/
    domain.com/index.php

    What's the best way to link to the home page within Dreamweaver that is a relative path?


    Maybe this??

    <a href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.google.com');">Make this your Homepage</a>

    Or this??

    $_SERVER['HTTP_HOST'] for home page

    Or maybe use an Absolute Path like:


    <a href="http://www.domain.com">Homepage</a>

    Any new tricks to keep up with Google?
     
    sem-profiteer, Sep 14, 2012 IP
  2. osalem

    osalem Peon

    Messages:
    22
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Definitely <a href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.google.com');">Make this your Homepage</a>
     
    osalem, Sep 15, 2012 IP
  3. sem-profiteer

    sem-profiteer Active Member

    Messages:
    257
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    75
    #3
    Crap. Thanks for the answer; however I just realized that this is a bookmark/home page setter.

    I'm looking on how to code the href within my website.

    <a href=".../index.php">goes to home page</a>
    Code (markup):
    But, I want it to drop the "index.php". Dreamweaver says this is an error when I validate links.
     
    sem-profiteer, Sep 15, 2012 IP