I have a site that is indexed in google, but there are two urls with the exact same description when I search up my site: www. example.com & www. example.com/index.php Is this considered duplicate content? How do I remove www. example.com/index.php when I search up my website on google, so all I see is www. example.com?
ive used robots.txt before to remove it along with the removal tool in google webmasters, or you can make sure none of your site links are to /index.php and let everything take its time naturally
Insert the below into your .htaccess file (replace yourdomain.com if your domain name.) RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://www.yourdomain.com/ [R=301,L] This will 301 redirect your index.php file to your www.domain.com address.