www.com and www.com/index.htm

Discussion in 'Search Engine Optimization' started by MaddiSEO, Oct 7, 2008.

  1. #1
    Hey guys.

    I just created a sitemap using http://www.xml-sitemaps.com/.

    I noticed something strange.

    The following is not my website, I am using it to demonstrate my question:
    http://phpmaestro.com/
    http://phpmaestro.com/index.htm

    My website is in the exact same format, and the sitemap put out these 2 URLs. Surly this could mean duplicate content issues. Not only that some links, for example my internal links in the website link to http://phpmaestro.com/index.htm where as inbound links from around the web point to http://phpmaestro.com/

    Does anybody see what i'm getting at?

    I suppose i'll need to do a 301 rediret so http://phpmaestro.com/index.htm points to http://phpmaestro.com/. If anybody could help me out in the 301 code i would love them, hehe!
     
    MaddiSEO, Oct 7, 2008 IP
  2. Kneoteric_eSolutions

    Kneoteric_eSolutions Banned

    Messages:
    382
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    do you know how to play with the htaccess file?

    Visit this link and it should give you all that you want
    http://www.isitebuild.com/301-redirect.htm

    And I am sure you gonna love me for this ;)
     
    Kneoteric_eSolutions, Oct 7, 2008 IP
  3. MaddiSEO

    MaddiSEO Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeah i have messed with htaccess before, but i'm not entirely sure what code to use, any help would be great.



    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^http://www.example\.com
    RewriteRule ^(.*)$ http://example(dot)com/$1 [R=permanent,L]

    I'm thinking of doing this to 301 my site to http://.com as this was the way the page was built.
     
    MaddiSEO, Oct 7, 2008 IP
  4. schgrv

    schgrv Active Member

    Messages:
    677
    Likes Received:
    9
    Best Answers:
    3
    Trophy Points:
    68
    #4

    DirectoryIndex index.html

    Use it in .htaccess on apache server......................
     
    schgrv, Oct 7, 2008 IP
  5. MaddiSEO

    MaddiSEO Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks schgrv,

    But the default isn't /index.htm. The problem is there is both the http://ww.com and www.com/index.htm both co exist. I tried doing a 301 redirect with htaccess but i just got an infinite loop error.

    The code i used was:
    redirect 301 /index.htm http://www.phpmaestro.com/
    (remember i am just using phpmaestro as an example, it is not my site.)
     
    MaddiSEO, Oct 7, 2008 IP
  6. catanich

    catanich Peon

    Messages:
    1,921
    Likes Received:
    40
    Best Answers:
    0
    Trophy Points:
    0
    #6
    It sounds link someone has a 301 on the w ww.your-site.com to w ww.your-site.com/index.htm already. Backwards. And when you created the 301 from w ww.your-site.com/index.htm to w ww.your-site.com, you set up the Loop

    At the same time, check out and/or set a 301 for the your-site.com to w ww.your-site.com scenario
     
    catanich, Oct 7, 2008 IP
  7. MaddiSEO

    MaddiSEO Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    That's what i thought but there does not appear to be a 301, see http://www.phpmaestro.com/.

    Exact same format as mine, all pages linking to homepage have the /index.htm extension, but http://www.phpmaestro.com/ does not redirect to http://www.phpmaestro.com/index.htm nore vice versa.
     
    MaddiSEO, Oct 7, 2008 IP