首页 > 代码库 > emlog在nginx中添加rewrite规则

emlog在nginx中添加rewrite规则


rewrite ^/(post|record|sort|author|page)-([0-9]+)\.html$ /index.php?$1=$2;rewrite ^/tag-(.+)\.html$ /index.php?tag=$1;

把index.html 强制转换到index.php页面

rewrite ^/index.html$ /index.php last;

 

emlog在nginx中添加rewrite规则