DeituiCms的Nginx伪静态设置说明
关于DeituiCms的Nginx伪静态说明
if (!-e $request_filename) { rewrite ^/index\.html /index.php last; #car rewrite ^/admin/car([_\w]*)/([_\w]*)$ /moduleadmin.php?m=car$1&a=$2 last; rewrite ^/car([_\w]*)/([_\w]*)$ /module.php?m=car$1&a=$2 last; #forum rewrite ^/admin/forum([_\w]*)/([_\w]*)$ /moduleadmin.php?m=forum$1&a=$2 last; rewrite ^/forum([_\w]*)/([_\w]*)$ /module.php?m=forum$1&a=$2 last; #b2b rewrite ^/admin/b2b([_\w]*)/([_\w]*)$ /moduleadmin.php?m=b2b$1&a=$2 last; rewrite ^/b2b([_\w]*)/([_\w]*)$ /module.php?m=b2b$1&a=$2 last; rewrite ^/shop/b2b([_\w]*)/([_\w]*)$ /moduleshop.php?m=b2b$1&a=$2 last; rewrite ^/sender/b2b([_\w]*)/([_\w]*)$ /sender.php?m=b2b$1&a=$2 last; #b2c rewrite ^/admin/b2c([_\w]*)/([_\w]*)$ /moduleadmin.php?m=b2c$1&a=$2 last; rewrite ^/b2c([_\w]*)/([_\w]*)$ /module.php?m=b2c$1&a=$2 last; #default rewrite ^/([_\w]*)/([_\w]*)$ /index.php?m=$1&a=$2 last; rewrite ^/admin/([_\w]*)/([_\w]*)$ /admin.php?m=$1&a=$2 last; rewrite ^/shop/([_\w]*)/([_\w]*)$ /moduleshop.php?m=$1&a=$2 last; rewrite ^/sender/([_\w]*)/([_\w]*)$ /sender.php?m=$1&a=$2 last; }