1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

http://www.mysite.com/page2.htm internal links or page2.htm internal links.

Discussion in 'Search Engine Optimization' started by dj_gie, Dec 6, 2006.

  1. #1
    With my website should i have internal links to other pages on my site as "http://www.mysite.com/page2.htm" or is it best to have the internal links as "page2.htm"

    Does anyone know what is best for SEO or does it not matter?
     
    dj_gie, Dec 6, 2006 IP
  2. la cala

    la cala Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    la cala, Dec 6, 2006 IP
  3. vitaminp

    vitaminp Peon

    Messages:
    202
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I find its better to use the full link for forward compatibility.

    For example when I played about with htaccess then changed the links to usernames on my site to sitename.com/username instead of sitename.com/index.php?goto=memberpage&userid=123, I found that my 'page2.html' links went from sitename.com/page2.html to sitename.com/username/page2.html .

    I didnt anticipate this originally and it meant that I had to edit hundreds of dynamically created links to fix the problem.

    I dont think this will make a difference in the searc engines, but the bottom line is that you should always use the full link.

    I hope that helped
     
    vitaminp, Dec 6, 2006 IP
  4. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #4
    An alternative URL would be '/page2.htm', i.e. with preceding /. Handy if you like to test your site on a test webserver. Disadvantage is that you can't previews your website on your own harddisk.

    Cryo.
     
    Cryogenius, Dec 6, 2006 IP
  5. tayiper

    tayiper Active Member

    Messages:
    421
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    78
    #5
    Well, you can always use "base href=" for that purpose (i.e. to specify the "root" directory), like for instance in this example below, which I took out of my own website's source.


    The example of two such "base href=" lines:

    <base href="http://tadej-ivan.50webs.com/" />
    Code (markup):
    <base href="http://tadej-ivan.50webs.com/legal/" />
    Code (markup):

    tayiper
     
    tayiper, Dec 8, 2006 IP
    LazyD likes this.
  6. LazyD

    LazyD Peon

    Messages:
    425
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Tayiper, I have never heard of the base href tag before but holy crap, that is awesome. I just did some research on it and that is absolutely great, thank you for pointing that out...
     
    LazyD, Dec 8, 2006 IP
  7. Cryogenius

    Cryogenius Peon

    Messages:
    1,280
    Likes Received:
    118
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I've discovered that not all search engine bots or web browsers handle this correctly. My log files contain a smattering of 404 errors because of this. Not too many though...

    Cryo.
     
    Cryogenius, Dec 8, 2006 IP