h5ai をサブディレクトリで用いる方法

結論

ルートにある.htaccess_h5aiディレクトリの指定場所を変更する。

具体例

デフォルトだと、.htaccess はこうなっていると思います。この場合はウェブサイトのルートを指します。例えば、https://foo.bar/ です。

DirectoryIndex  index.html  index.php  /_h5ai/public/index.php

これを例えば https://foo.bar/sub/directory/ の場所で h5ai を有効にしたい場合は以下のように書きます。

DirectoryIndex  index.html  index.php  /sub/directory/_h5ai/public/index.php

答え

Powered by はてなブログ