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!
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
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.
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.)
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
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.