Small tips to make retain html page while it can read php code :-)

Discussion in 'Search Engine Optimization' started by Sxperm, Feb 20, 2007.

  1. #1
    Hi,

    This tip may have been known already but I just want to share. If you have old site with pure html page and need to embed php script but don't want to change extension from .html to .php for whatever reasons, just this small tips. :D

    Open text editor (suggest for Editplus) and create .htaccess file and add this line

    AddType application/x-httpd-php .html

    then save and upload to your root or folder that your html pages contained. If you already have .htaccess then just add those line in the first line. All of your html page will read php code and use thme like php page but retain in .html extension.

    Good luck with your site. :D
     
    Sxperm, Feb 20, 2007 IP