Hi, my friends, I've used htaccess + mod_rewrite to rewrite some dynamic URLs from refer.php?id=XX ---> Tell-a-friend-ID-XX.html It's work very well but one thing happened. Many bots crawl both of them and that's a duplicated contents. How to prevent bots crawl my dynamic page but only URL I've rewritten for. I tested by many sitemap generator software and they're crawl my site like I mentioned. Cheers, Sxperm
You have one step done. Next you need to disallow the robots from indexing your old URL's. Updating your robots.txt file will help with this. Here is a help file on robots.txt to help with this process. Good luck
I'm not sure how to do this in PHP or mod_rewrite (I know in ASP, that's it) but did you make sure to include the 301 response status in the header of your old referring URL? The 301 status code tells the SEs "hey, the page moved and it's over here now. We're not restoring this page ever again, so please delete."