I just recently found an issue where Google has indexed 4-5 pages of a domain by the servers IP address.
How do I enable mod_rewrite to be able to solve this issue from happening in the future?
Current .htaccess
Code:RewriteEngine on RewriteCond %{THE_REQUEST} /index.php RewriteRule ^([a-z]+/)?index\.php$ http://www.example.com/$1 [R=301,L] RewriteRule ^(example-directory-1/)?index\.php$ http://www.example.com/$1 [R=301,L] RewriteRule ^(example-directory-2/)?index\.php$ http://www.example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule .? http://www.example.com%{REQUEST_URI} [R=301,L]



Reply With Quote



Bookmarks