Server Side Includes (SSI) Print

  • 22

Common SSI codes you might find useful:


<!--#echo var="HTTP_REFERER" --> referring URL
<!--#echo var="REMOTE_ADDR" --> visitor's IP address
<!--#echo var="REQUEST_URI" --> requested URL
<!--#echo var="HTTP_HOST" --> server name
<!--#echo var="HTTP_USER_AGENT" --> visitor's browser
<!--#echo var="REDIRECT_STATUS" --> redirect status code
<!--#echo var="DATE_LOCAL" --> visitor's date and time
<!--#include virtual="path/file.ext" --> file include


Note: rename your html pages to shtml if you use SSI



Was this answer helpful?

« Back