ルートディレクトリに.htaccessを配置
内容は以下。
Options MultiViews
AddType text/html .php
ルートの下にある特定のディレクトリだけこの設定が効かないようにしたいのですが
可能なのでしょうか?
現在下の階層にあるMTが入っているフォルダに効いてしまい。
MTが動きません。
やり方があれば教えてください。
サーバはApacheです。
MTが入っているディレクトリに下記の.htaccessを入れてください。
こちらが優先されます。
Options -MultiViews AddType application/x-httpd-php
MTが入っているディレクトリに下記の.htaccessを入れてください。
こちらが優先されます。
Options -MultiViews AddType application/x-httpd-php
Galapagos様
度々ありがとうございます。
500 error でした。
正確に書くとルートディレクトリのhtaccessには
ErrorDocument 401 http://www.hogehoge.com/
ErrorDocument 404 http://www.hogehoge.com/
ErrorDocument 403 http://www.hogehoge.com/
ErrorDocument 500 http://www.hogehoge.com/
AddOutputFilter INCLUDES .html
AddHandler php4-script .html
Options MultiViews
AddType text/html .php
と書いてあります。
mtが入っている。htmlを直で叩いても500 errorでした。
MultiViewsの設定でなくて
本当にエラー500で、Internal Server Errorを起こしてるのではないのでしょうか?
回答ありがとうございます。
違うようです。
問題は解決しました。
Options +ExecCGI
AddType text/html cgi
をmtのhtaccessに追加しました。
Galapagos様
度々ありがとうございます。
500 error でした。
正確に書くとルートディレクトリのhtaccessには
ErrorDocument 401 http://www.hogehoge.com/
ErrorDocument 404 http://www.hogehoge.com/
ErrorDocument 403 http://www.hogehoge.com/
ErrorDocument 500 http://www.hogehoge.com/
AddOutputFilter INCLUDES .html
AddHandler php4-script .html
Options MultiViews
AddType text/html .php
と書いてあります。
mtが入っている。htmlを直で叩いても500 errorでした。