nginx如果配置去掉index.php
location /{
if ($request_filename !~ (system|images|robots\.txt|index\.php.*) ) {
rewrite ^/(.*)$ /mobile/index.php/$1 last;
}
}
这样是可以的
因为在网站根目录下 放了好几个目录 每个目录是不同的内容
我想分别都去掉这几个 mobile app restserver apph5这几个的url路径的index.php
改怎么配置啊
这里有
www----根目录
---mobile---
---app---
---restserver---
---apph5---