I am currently doing this with htaccess
RewriteRule ^view$ view.php [L]
And I link to /view
without the extension and it works fine.
But how do I disable robots from indexing /view
? in the robots.txt
I put
Disallow: /view.php
Disallow: /view
When I go into webmaster tools and I fetch as google. I can fetch the mydomain.com/view
, which is not suppose to happen, but when I try to fetch mydomain.com/view.php
it says blocked by robots.txt, which is good.
How can I block access to /view
from robots?