Hello Experts, I have little confusion with redirection. My site is 1 year old and google crawl site index page without index.html means direct domain. So for example when I search keyword 'abc' it will shoe me abc.com link instedof abc.com/index.html. Now I want abc.com/index.html in place of abc.com in google search result. So if I make changes in .htaccess for default page so it will server my requirements? and is it effect site seo? I do not change any content,link nothing. Just make index.html as default page. Thanks,
Well most web servers take index.php or index.htm or index.html as the default page so search engines are also aware that index.htm, index.html or index.php is the default page. So even if index.html doesn't show in results, search engines are referring to that only. A more serious issue is when search engines think that http://abc.com and http://www.abc.com are 2 different sites. To rectify this kind of behavior you can use redirection in .htaccess file. Here is the code to achieve that <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^abc.com$ [NC] RewriteRule ^(.*)$ http://www.abc.com/$1 [L,R=301] </IfModule> Replace abc.com with the site name Good luck,