$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Add the Suffix Html to URL With Rewrite Apache Module on a PHP Site/Blog

November 22, 2011 | By Duchateaux.

This Short Tutorial shows you you How to Modify your URLs Adding an html Suffix on a PHP Site Blog.

  1. Apache mod_rewrite Need to be Enabled

  2. Add this RewriteRule to .htaccess on Site Root

    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^(.*).html$ $1.php [NC]

  3. The if you are on Localhost Restart Apache

To Test:
Make a test.php file containing:

?>phpinfo();

Insert in your browser the URL:

/test.html

Now your Apache mod_rewrite should Rewrite your URL to Call the test.php file and so you should be able to See your PHP Installation Settings on screen.
Then you will be able to Modify your URLs Adding the html Suffix Keeping untouched your PHP Site Files…