|
Installation:
|
- Download License. If you do not agree to license, stop installation
- Save file hfr.pl to your hard drive
- Correct first script line if path to Perl on your server is not "/usr/bin/perl"
- Create directory /cgi-bin/hfr/ on your server
- Upload file hfr.pl to /cgi-bin/hfr directory on ASCII mode
- Change file hfr.pl mode to 755
- Create directory /cgi-bin/hfr/headers on your server (if you will use headers)
- Create directory /cgi-bin/hfr/footers on your server (if you will use footers)
- Create separate files with headers. You can use any names you want, but extension must be .htm
- Create separate files with footers. You can use any names you want, but extension must be .htm
- Upload headers files to /cgi-bin/hfr/headers on your server
- Upload footers files to /cgi-bin/hfr/footers on your server
- Go to web directory where you want to add headers/footers to html pages. Script will work for this directory and all subdirectories
- Add to .htaccess file two lines:
Action add-header /cgi-bin/hfr/hfr.pl
AddHandler add-header .html .htm .shtml
If .htaccess file doesn't exist, just upload .htaccess with two lines above
- If you use other extensions for html files, add them to "AddHandler" line
- Enjoy :)
|