ISAPI Rewrite静态规则转换为Nginx Rewrite RewriteRule (.*)/aid_([a-z]+).htm $1/ask\.php\?id=$2 [I]RewriteRule (.*)/([a-z]+) $1/list\.php\?id=$2 [I]RewriteRule (.*)/([0-9]+)_([a-z]+)-([0-9]+) $1/list\.php\?id=$3&lm=$2&p=$4 [I]RewriteRule (.*)/ta
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/19 11:50:21
ISAPI Rewrite静态规则转换为Nginx Rewrite RewriteRule (.*)/aid_([a-z]+).htm $1/ask\.php\?id=$2 [I]RewriteRule (.*)/([a-z]+) $1/list\.php\?id=$2 [I]RewriteRule (.*)/([0-9]+)_([a-z]+)-([0-9]+) $1/list\.php\?id=$3&lm=$2&p=$4 [I]RewriteRule (.*)/ta
ISAPI Rewrite静态规则转换为Nginx Rewrite
RewriteRule (.*)/aid_([a-z]+).htm $1/ask\.php\?id=$2 [I]
RewriteRule (.*)/([a-z]+) $1/list\.php\?id=$2 [I]
RewriteRule (.*)/([0-9]+)_([a-z]+)-([0-9]+) $1/list\.php\?id=$3&lm=$2&p=$4 [I]
RewriteRule (.*)/tag-([0-9]+)-([0-9]+)-(.+)-([0-9]+)$ $1/tag\.php\?lm=$2&pn=$3&word=$4&cid=$5
RewriteRule (.*)/index\.htm $1/index\.php
怎么写?
rewrite ^/aid_([A-Za-z]+).htm$ /ask.php?id=$1;
rewrite ^/([A-Za-z]+)$ /list.php?id=$1;
rewrite ^/([0-9]+)_([A-Za-z]+)-([0-9]+)$ /list.php?id=$2&lm=$1&p=$3;
rewrite ^/tag-([0-9]+)-([0-9]+)-(.+)-([0-9]+)$ /tag.php?lm=$1&pn=$2&word=$3&cid=$4;
rewrite ^/index.htm /index.php;
ISAPI Rewrite静态规则转换为Nginx Rewrite RewriteRule (.*)/aid_([a-z]+).htm $1/ask\.php\?id=$2 [I]RewriteRule (.*)/([a-z]+) $1/list\.php\?id=$2 [I]RewriteRule (.*)/([0-9]+)_([a-z]+)-([0-9]+) $1/list\.php\?id=$3&lm=$2&p=$4 [I]RewriteRule (.*)/ta
ff