title: How to load Hard Coded Pages with CMS values using PHP?
body: <p>Let me explain the scenario first.</p>
  
  <p>I have built a cms in which I load every page on one page like this.</p>
  
  <blockquote>
    <p><a href="http://www.mywebsite.com/index.php?page=about" rel="nofollow">http://www.mywebsite.com/index.php?page=about</a></p>
  </blockquote>
  
  <p>Here "about" is a slug of the page I create from the Cms.
  So the sql query fetch the record using the slug &amp; retrieve the content of the page &amp; print it on index.php</p>
  
  <p>Now the next thing I have done is, I have done URL rewriting in .htaccess file like below</p>
  
  <blockquote>
    <p>Options +FollowSymlinks RewriteEngine On</p>
    
    <p>RewriteCond %{REQUEST_URI} !^.<em>(images/|.js|.css).</em>$ [NC]
    RewriteRule ^([a-zA-Z0-9_-]+)$ /index.php?page=$1</p>
  </blockquote>
  
  <p>So now I can use this kind of URLs on my site for same "about" page</p>
  
  <blockquote>
    <p><a href="http://www.mywebsite.com/about" rel="nofollow">http://www.mywebsite.com/about</a></p>
  </blockquote>
  
  <p>Now the Question is, these all pages are simply content based, but how should I maintain Dynamic pages.
  E.g. I have a page for Member Registration as signup.php</p>
  
  <p>I want to assign all the title, heading, meta desc, meta keywords from CMS to this page but also want to load this page using</p>
  
  <blockquote>
    <p><a href="http://www.mywebsite.com/signup.php" rel="nofollow">http://www.mywebsite.com/signup.php</a></p>
    
    <p>&amp; not like</p>
    
    <p><a href="http://www.mywebsite.com/signup" rel="nofollow">http://www.mywebsite.com/signup</a></p>
  </blockquote>
  
  <p>What kind of logic should I apply to load the page as signup.php &amp; also fetch the CMS values ?
  One solution I have in mind is, we should put one more field in CMS as "Code File :" &amp; enter signup.php over there. But still I am not sure.</p>