My objective is to generate multiple (about 100+ different) indexable html pages with different tags and content based on URL string, using only 1 or 2 php scripts.
as described below, i am using rewrite rules(because the actual pages doesn't exist but they are generated when a particular URL is accessed ,the urls itself are manually composed and fed to google in a sitemap.) and PHP includes with variables to generate different tags.
It's all fine (pages render properly with right meta/title/content) when i access them through browser but the same is not indexed by google!, it just indexed the URL string like "site.com/this/pageis/generated/onacess" because i put it in sitemap but it doesn't show anything else (meta description/title) of the page in the search results!., that shows a difference in manually accessing the page by browser and google bot access.need your help in understanding what i am missing.
I am expecting the bot to run the script to index my 'meta/title/description tags and the static tables' but that is not happening.
is it something to do with nested php includes? kindly help me understand what i am missing here.
here is my rewrite rule:
RewriteRule ^(.*).html$ /index.php [L]
contents of "index.php" :
<html>
<head>
<?php include 'head.php' ?>
</head>
<body>
</body>
</html>
contents of "head.php":
<title> this title is not indexed
</title>
<meta name="description" content="Expecting this <?php $var $also ?>
the content to be indexed and appear in the google search under the site_url link but its not showing">
google indexes this page but not showing the 'meta description/tilte " in the search results. it just shows the sitename/url no text below the link, why so. kindly let me know if anything is not clear.