首页 > CMS教程 > 其他CMS    日期:2019-03-13 / 浏览

安装了drupal之后,想去看看“帮助”,在website/admin/help页面。但是点了一下404了如上图。 上图的admin/*都无法访问如下图,但是我觉得可以用website/index.php/admin/help,实测可用,但是还是设置一下伪静态吧。

伪静态规则如下,再次实测可用

location ~ ^.*/files/styles/.*$ {
access_log off;
expires 45d;
error_page 404 @drupal;
}
 
location @drupal {
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
}
}
# Drupal Rewrite
location / {
root /path/to/drupal;
index index.php index.html;
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?q=$1 last;
}
}

觉得上面的内容有用吗?快来点个赞吧!

点赞() 我要打赏

温馨提示 : 本站内容来自会员投稿以及互联网,所有源码及教程均为作者总结编辑,请大家在使用过程中提前做好备份,以免发生无法预知的错误,源码类教程请勿直接用于生产环境!

 可能感兴趣的文章

1 2 3 4 5