我想添加Apache .htaccess规则。 这是来自旧服务器的nginx: p>
location~ \ .php $ { fastcgi_split_path_info ^(。+ \。php)(/。+)$; fastcgi_pass unix :/var/run/php5-fpm.sock; fastcgi_index index.php; 包括fastcgi_params; } 位置/ { if(-f $ request_filename){ break; } if(-d $ request_filename){ break; } rewrite ^ /(.*)/index.php?demand=$1; }
pre> \ n如何重写这个? 我现在得到的只是索引页面,找不到其余的文件。 我真的希望在这里得到一些帮助,谢谢。 p> div>