0
を有効にする方法2.4は、私は、Apache serveur上rewritモジュールを有効にしようと私はPHPファイルを作成した場合、私はsubdomaineApacheの書き換えモジュール
を作成している8 2.4とDebian:
<?php
if(!function_exists('apache_get_modules')){ phpinfo(); exit; }
$res = 'Module Unavailable';
if(in_array('mod_rewrite',apache_get_modules()))
$res = 'Module Available';
echo apache_get_version();
?>
それが表示されグローバルディレクティブ(/etc/apache2/apache2.conf)で
"利用可能なモジュールは、" 私が作成している:
<Directory /var/dev/>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>
私は、ルートWebフォルダ
Options +FollowSymlinks
RewriteEngine On
RewriteRule ^foo.html$ test.html
そしてtest.htmlというファイルに.htaccessファイルを作成する必要があります!
私はこれ持ってappacheエラーログに:
[木12月22日11:36:44.828831 2016] [コア:情報] [PID 1884] [クライアント83.145.73.220:58115] AH00128:ファイルが存在しないと:あなたの助けのための
感謝