Forum Moderators: phranque
When I installed my forum, I deleted the index.html page. The main page is now index.php.
However, google still has the old index.html page indexed, and is indexing the index.php page as a separate page. This is affecting my ranking because google is not indexing the main page of my new site.
Is this the solution below?
DirectoryIndex index.phpRewriteEngine on
RewriteCond %{THE_REQUEST} ^.*\/index\.html
RewriteRule ^(.*)index\.html$ http://www.example.com/$1 [R=301,L]RewriteEngine On
rewritecond %{http_host} ^example.com
rewriteRule ^(.*) http://www.example.com/$1 [R=301,L]