IndianWebPortal.com

Something Different In Linux

Home » How to » How to enable SSI ?

How to enable SSI ?

Posted by Rishikesh Vispute Categories: How to, htaccess, PHP

How to enable Server Side Includes on the server ?

Ans:

First you can check SSI are enabled on your server or not.  So create one test.html file and add the following code .

<!--#ECHO var="DATE_LOCAL" -->

Then access the page by using the URL http://domain.com/test.html  and  it shows the current date to the screen

Wednesday, 23-Jun-2010 23:53:09 BST

Means SSI was enabled on your server

and  If  the URL  shows the blank page then SSI are  not enabled on your server.

If you want to enable it then you need to add the following code into the .htaccess file .

AddType text/html .htm .html .shtm .shtml .sht
AddHandler server-parsed .htm .html .shtml .sht .shtm
Save and exit
If you want to enable the SSI on the server then you need to add
same code in httpd.conf file and restart the apache service.

One Response so far.

  1. I am always searching online for articles that can help me. Thank you

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...