Render php in html page using htaccess
Recently i got a project where i had to convert all the existing static html pages into php and i had to use common header and footer in-order to make the editing of links easier. The site had good page ranking and all the pages indexed were .html format.
The following code helped me render php inside a html page.
AddHandler application/x-httpd-php .php .html .htm
Using the above htaccess file, you can write php codes between php tag and it will be rendered as php when the page runs.
Cheers. Do let me know your comments/feedback
June 19, 2013 / roymj88 / 3
- Google API
- Google Maps
- Hybrid Apps
- Mobile Application Development
- mod rewrite
- Push Notification
- Random Quotes
- Source Code
- Web Development