VPS侦探论坛
标题:
lnmpa1.4-php7+drupal8 clean url怎么都设置不好
[打印本页]
作者:
challey
时间:
2017-6-17 21:48
标题:
lnmpa1.4-php7+drupal8 clean url怎么都设置不好
军哥,您好!最近折腾死了,
lnmpa1.4-php7+drupal8 clean url怎么都设置不好,url中总是出现/index.php/。地址:www.zhubaopub.com
lnmpa是没有装 php-fpm对吧,
我换了lnmp,lamp都没问题,请了朋友也没搞好,还请赐教。
作者:
licess
时间:
2017-6-18 11:19
没设置伪静态吧
作者:
challey
时间:
2017-6-18 12:22
已经设置过了
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=$1 last;
break;
}
}
不起作用。
装回 lnmp,设置下面就可以:
location / {
index index.php index.html;
try_files @uri @rewrite;
}
location ~ ^/sites/.*/files/styles/ {
try_files $uri @rewrite;
}
location @rewrite {
rewrite ^ /index.php last;
}
作者:
challey
时间:
2017-6-19 10:46
军哥,麻烦指点一下
作者:
licess
时间:
2017-6-19 13:08
标题:
回复 3# 的帖子
lnmpa和lamp下使用apache格式的伪静态 .htaccess 放网站根目录下
作者:
challey
时间:
2017-6-20 21:19
非常感谢军哥!!!一句话搞定n天的折腾与纠结!
欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/)
Powered by Discuz! X3.4