Forum Moderators: open
I have been hand developing my site for about a year now. I am new to HTML development and now things are getting out of hand. When I want to update my menu or links that are contained on every page, I have to manually update every page...argh.
I know there is software out there, but does anyone know the best and easiest to use.
Please advise.
Dude
AddType application/x-httpd-php .html
to your .htaccess file. Then do a search and replace for all you files to remove each section like header and footer and replace with
<?php include("header.inc");?>
Just put the file head.inc in the root of your site. If you are using subdirectories you may want to put the path before head.inc. Something like /usr/sitename/html/. Or whatever your host uses.
[edited by: ogletree at 7:36 pm (utc) on June 23, 2006]
SSI must be enabled and that may require you to change filename extensions from .html to .shtml, also, you'll have to install server software (Apache) to test your site on your local machine.
<iframe> works well if you are certain you know the maximum size of the contents, however, the contents are usually indexed separately by search engines.
A third solution is to place all common code in templates so that editing the template causes all pages to be updated - however, you need a software package like Dreamweaver to do this. I prefer this solution myself.
Kaled.
I have been looking at HTML editors like Coffeecup HTML Editor, but not sure if that has the template availability. Is software like dreamweaver the only useful tool.
thanks in advance.