Apache .htaccess ルールを追加したい。これは古いサーバーのnginxからのものです:
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location / {
if (-f $request_filename) {
break;
}
if (-d $request_filename) {
break;
}
rewrite ^/(.*) /index.php?demand=$1;
}
これをどう書き直すか。私が今得ているのはインデックスページだけで、残りのファイルは見つかりません。ここで助けてもらえることを本当に望んでいます、ありがとう。