Hi all, I have a site that used to have an index.html page now I have installed an article directory script and the index has become index.php. I see some crawling errors. I tried to insert a 301 permanent redirect in the htaccess file but the site cannot be crawled. What is the best way to redirect from the index.html to index.php? Thanks/Regards
open index.html and enter this code : <META HTTP-EQUIV='Refresh' CONTENT='0; url=http://www.yoursite.com/index.php'> Code (markup): chang the domain name . good luck bro
Use this in .htaccess to insert 301 redirect for index.html to index.php RewriteEngine On RewriteRule ^index.html index.php
use 301 redirect for redirecting index.html to index.php, use below code Options +FollowSymLinks RewriteCond %{THE_REQUEST} ^.*/index.html RewriteRule ^(.*)index.html$ http://www.yoursite.com/$1 [R=301,L] dont be panic, it will take some to crawl new redirected pages.