hi friends i have some problem Acctually i have a site which have 4 home pages like: http://www.sitename.com PR-1 http://www.sitename.com/index.htm PR 2 http://sitename.com/index.html PR2 http://sitename.com PR 3
You will need to look into make an .htaccess file that redirects users to the homepage you want, probably http://www.sitename.com. So you would redirect the other three to that address using htaccess rewrite rules.
I'd suggest looking into 301 redirect this is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option A 301 Redirect can be done is PHP, ASP, JAVA, .NET, Ruby or htaccess so you can use which ever suits. Google is your friend ;-)
when you say you have 4 home pages do you actually mean its all one site or 4 seperate sites? i.e. have you got 4 different copies of your site on your server? if its just one site then all the links you posted above is linking to the same thing i.e. if i gotoany of the links with yoursitename then they are all the same place as they are all on the same domain!! if not then u can create a .htaccess file with the below code, it will ensure that all requests coming in to domain(dot)com will get redirected to www(dot)domain(dot)com The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed) Options +FollowSymlinks RewriteEngine on rewritecond %{http_host} ^domain(dot)com [nc] rewriterule ^(.*)$ http://www(dot)domain(dot)com/$1 [r=301,nc] Please REPLACE domain(dot)com and www(dot)newdomain(dot)com with your actual domain name. Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled. Ps replace (dot) with .
hi i want to ask i want to redirect all my 3 URL http://www(Dot)sitename(Dot)com/index.htm PR 2 http://sitename(Dot)com/index.html PR2 http://www(Dot)sitename(Dot)com PR 3 to http://sitename(Dot)com Explain Complete Procdure Please Above Procedure works only for 2 URL
why do you have an index.html and an index.htm in you site directory? anyone visiting yoursitename(dot)com will get redirected to the index automatically also if they put www in front of yoursitename(dot)com it will be the same as just going to yoursitename(dot)com this is why i dont understand how they all have different Page Rank values take out one of the index files and all should be solved!
put the following italic lines into a .htaccess file in the root of your website to redirect the index files use redirect 301 /index.htm hxxp://www(dot)yoursitename(dot)com/ redirect 301 /index.html hxxp://www(dot)yoursitename(dot)com/ to redirect the non www to the www use Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^yoursite(dot)com [NC] RewriteRule ^(.*)$ hxxp://www(dot)yoursite(dot)com/$1 [L,R=301] i cant post actual links yet otherwise i would put up the .htaccess file for you to download.
good point hadnt thought of that, essentially seoshel needs to decide which page they want the user to see first i.e. htm or html page then just use one of the above.
One could also consider making use of the new rel canonical tag. In essence, you just need to add the following html code to your index.html/index.htm/index.php head element: <link rel="canonical" href="http://www.yourdomain.com/" /> HTML: This would tell Google that the page with www is the preferred index page and therefore solve all the duplicate content and pagerank juice flow issues in Google. At least for the index page. More about the tag here: http://googlewebmastercentral.blogspot.com/2009/02/specify-your-canonical.html
This redirects all to "non" www RewriteEngine On RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.htm\ HTTP/ RewriteRule ^index\.htm$ http://your-domain.com/ [R=301,L] RewriteBase / RewriteCond %{HTTP_HOST} ^www.your-domain.com$ RewriteRule ^(.*)$ http://your-domain.com/$1 [R=301,L] You may need to change the page extension (bold). If you want to redirect to "www" - just add www. to your domain where it is missing and remove it where you see it in this code.