Hi, I have some urls that are indexed (not cached) by google such as http://www.example.com/details.php?id=56789.php Now I have mod_rewrote the urls to http://www.example.com/featured-area_56789.php of course I can still get to the url by using the old dynamic url. Question is will this be a problem with duplicate content? or any other problems? What does it mean to have a page indexed, but not cached? Thanks Red.
Shawn is correct. It will definitely trigger a red flag by G for duplicate content. To avoid any negative effects on your site rankings, do a 301 redirect from old pages to the newly rewritten ones.
You could do it with a couple lines of logic on the beginning of the PHP script with something along these lines: if (strpos ($_SERVER["REQUEST_URI"], 'details.php')) { header('HTTP/1.1 301 Moved Permanently'); header('Location: http://www.example.com/featured-area_' . $_REQUEST['id'] . '.php'); exit; } PHP:
That is the problem, I still want to be able to access the dynamic urls. It is an interesting problem. What I am doing is sending people to details pages from the home page using the mod rewritten url. Previously i had not been rewriting the urls and so they have been "indexed" Then I also send people to that same page from a search results page, which I figured will not be able to be seen by the search engines ( the results page ). since you have to POST to get to it. These are the only links to them using the dynamic urls. I would like to avoid redirection. There are only about 20 pages "indexed" When pages "indexed" they don't say they are cached. What do that mean? Should I maybe write rules only for the ones that are "indexed" or is it worth it? Thanks
Never mind the above post, I'll just rewrite all the urls that point to details pages. Then redirect the old dynamic urls. Does the php script have the same affect as if I were to do mod_rewrite in .htaccess? Thanks for you help.