Hello, I created rules in my .htaccess file like this: RewriteRule ^blog/?$ index.php?page=blog So someone visists http://www.mysite.com/blog, he will actually be seeing http://www.mysite.com/index.php?page=blog. But there's a problem, Google is indexing both versions of the URLs, and I don't want the "php" URLs to be available. So how do I block the undesired URLs, both for Google and the visitors?
Google should not find it unless there is a link to it somewhere in your site. Check any sitemaps you may have created with old links, or other pages in your site using the wrong URL. If google insists on indexing it, you can use .htaccess to do a redirect from the old to the new, or use google.com/webmasters to have the URL removed.