开发者

.htaccess adding php type

开发者 https://www.devze.com 2023-01-24 12:23 出处:网络
i been tring to add .inc page as php page using .开发者_如何学Gohtaccess, but each time i add it to my existing code in the end of the line, it downloads the page rather then process as a php file.

i been tring to add .inc page as php page using .开发者_如何学Gohtaccess, but each time i add it to my existing code in the end of the line, it downloads the page rather then process as a php file.

my existing .htaccess code

RewriteEngine on

Options +FollowSymlinks

RewriteBase /

#RewriteRule (mp3|mp3/)$                    audio/qari.php  [L]

RewriteRule mp3/(.*).mp3        audio/$1.mp3    [L]

RewriteRule ^(.*)(\.)(.*)$      $1$2$3          [L]

RewriteRule ^(.*)$              /index.php      [L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 67.218.116.130

i tried adding following line in the existing code, but dont work.

AddType application/x-httpd-php .html .inc .php


I think you can use:

AddHandler application/x-httpd-php .html .inc .php


Try AddHandler instead of AddType

Alternatively try

AddHandler php5-script .php .html .inc
0

精彩评论

暂无评论...
验证码 换一张
取 消