doucong6884 2015-10-24 18:27
浏览 36

PHP AddHandler阻止另一个AddHandler

I am trying to run a PHP script on an html page and I have figured out that I need to add the following to my htaccess file:

AddHandler application/x-httpd-php .html

So I did that and it allowed the PHP script to run as needed, but it also blocked another AddHandler from running, which I use for html include files such as sitewide navigation and ads.

This is what my htaccess file looks like:

Options +Includes
AddHandler server-parsed .html

AddHandler application/x-httpd-php .html

For whatever reason the Options +Includes AddHandler gets blocked when I add the PHP AddHandler, which means the sitewide include files do not display as they usually do.

Is there a way to have both AddHandler commands running without one blocking the other?

Thanks for any help...

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度