如何让apache支持.shtml 让apache支持include标签

第一步,修改httpd.conf文件中,增加文件后缀
AddType   text/html   .shtml  
AddHandler   server-parsed   .shtml  

第二步:继续修改,增加options属性

  <Directory   />  
          Options   FollowSymLinks   MultiViews   Includes  
          AllowOverride   None  
          Allow   from   all  
  </Directory>  

很简单的两个步骤...略微记录下...

相关文章: