linxu程序 nginx
wordpress下的伪静态规则:
location /
{
try_files $uri $uri/ /index.php?$args;
}
rewrite /wp-admin$ $scheme://$host$uri/ permanent;
我想加入俩行这样的规则,应该怎么写?
nginx
RewriteRule ^article/(.+).html(.*)$ article.php?name=$1 [L];
RewriteRule ^product/(.+).html(.*)$ product.php?name=$1 [L];
|
|