一個在根目錄一個在en 目錄
#請復制下面偽靜態配置到nginx配置文件中:
#規則適合PbootCMS V2.0+版本
location /en/ {
if (!-e $request_filename){
rewrite ^/en/(.*)$ /en/index.php?p=$1 last;
}
}
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?p=$1 last;
}
}
一個在根目錄一個在en 目錄
#請復制下面偽靜態配置到nginx配置文件中:
#規則適合PbootCMS V2.0+版本
location /en/ {
if (!-e $request_filename){
rewrite ^/en/(.*)$ /en/index.php?p=$1 last;
}
}
location / {
if (!-e $request_filename){
rewrite ^/(.*)$ /index.php?p=$1 last;
}
}
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。