大米CMS官网论坛,大米站长联盟,大米站长之家,大米开发者社区
标题:
opencart伪静态隐藏index.php
[打印本页]
作者:
admin
时间:
2022-10-11 11:06
标题:
opencart伪静态隐藏index.php
location / {
# This try_files directive is used to enable SEO-friendly URLs for OpenCart
try_files $uri $uri/ @opencart;
# 隐藏index.php
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?$1 last;
}
}
复制代码
欢迎光临 大米CMS官网论坛,大米站长联盟,大米站长之家,大米开发者社区 (https://www.damicms.com/bbs/)
Powered by Discuz! X3.1