Forum Moderators: coopster
<?
session_start();$meta_pagetitle="... ";
$meta_keywords=" ... ";
$meta_description=" ... ";
include('./inc/header.html');
include('./inc/index.html');
include('./inc/footer.html');
?>
So now my site is nice and pretty.
Problem is, search engines (like google) still have the .htm/.html pages in their index, which point to the raw data, without the header/footer (Including the <body> tag, meta keywords/desc/title, navigation menu, and copyright notice in the footer... not to forget my adsense ads!)
So, if somebody accesses a .htm/.html url directly, there is no way for them to really navigate the site.
Is there anything I can put in the .htm/.html pages to check the url in the browser, and if it is .htm/.html, redirect to the .php page?
I have placed
User-Agent: *
Disallow: /*.htm$
Disallow: /*.html$ in my robots.txt, but I figure it may take a long time for these pages to drop out of the SE's. It is a very large site (thousands of pages... genealogy/history data).
Help?!?