.htaccess - Will googlebot index my index.php even with an htaccess redirect? -


Using a redirect statement in my htaccess file, people who type the following in the address bar ...

  http://example.com/index.php  

... is redirected to ...

 < Code> http: // example.com/  

I also have a nonindex, Nofollow meta tag on all my website pages.

My question is, given that the Redirect behavior and Meta data are the Googlebot index on my main page (ie index.php) if my robots.txt file is as follows ...

 < Code> User-agent: Googlebot permission: reject /index.php: / user-agent: * reject: /  

if not, how to change my robots.txt Needed so that only my main page gets indexed in Google and there is not anything else?

Thanks in advance!

This is risky to ensure that Google indexes your homepage:

agent: * allow: /index.php reject: / reject: / b ... reject: / z reject: / 0 ... rejected: / 9

then your root will not match the "/" rejected rules.

In addition, if you do not forget to add AdSense

  User-agent: Mediapartners-Google Allow: /  

Comments