I have a website where animal shelters can list their cats and dogs to find a new home. Years ago, I manually created static pages like www.mysite.om/rottweilers-dogs-in-shelters.html . These pages are completely outdated now, but they perform well in Google. I would like to replace them with my new dynamic page which looks like www.mysite.com/search/rottweiler.html . This new page already proved to perform quite good as well in Google. So the question: how can I tell Google that I have a new (dynamic) version of a well performing static page? Should I just add a text link staing "this page has moved to..? Thanks a lot for your help!
Keep the page names the same and just alter the code on them to be php code. You can create a line in your htaccess file to make html pages parse php code. AddHandler application/x-httpd-php .html Code (markup): If you do have to change the names then you would need to use your htaccess file to 301 redirect the old pages to the new pages. redirect 301 /old_page.html http://www.yoursite.com/newpage.php Code (markup):
I noticed the example you gave for the new dynamic page has a .html extension. Is this its actual file name or just an example of how it will look. I don't know that I would want to tell google they're dynamic. There are a lot of people who believe that "g" down rates dynamic pages. Though I can't say that it is gospel. I would follow Mad4's advice and just give the new pages the same file names that are already ranking. If neccesary use the .htaccess technique so that your server will treat the html extension as php. If this is not feasible the 301 redirect described by TOPS will do the trick.
if you are using php, use the following way to do 301 redirects: <?php header('HTTP/1.1 301 Moved Permanently'); header("Location:index.php"); ?> Code (markup):
Do not change your file names. Once you a filename change, even if you use .htaccess to do 301 permanent redirects, your new file name will not rank for a little while. But once google has figured out that they are moved to new location, it will pass on the juice to new pages, and this process takes a little while. So the point is, if you are willing to take a small hit for a little while, then go ahead and change the file name or rather stick with the current file names (do the rewrite in your dynamic pages, so that it gives you the same filename).