求帮助将IIS的伪静态规则改写成apache的规则

求帮助将IIS的伪静态规则改写成apache的规则,第1张

RewriteRule^(.*)/user/(.*)/(.*)/(.*)$ $1/index\.php\?user&user_id=$2&q=code/$3/$4

RewriteRule^(.*)/user/(.*)/(.*)$ $1/index\.php\?user&user_id=$2&q=code/$3

RewriteRule^(.*)/user/(.*)$ $1/index\.php\?user&user_id=$2

RewriteRule^(.*)/u/(.*)/(.*)$ $1/index\.php\?home&user_id=$2&q=$3

RewriteRule^(.*)/u/(.*)$ $1/index\.php\?home&user_id=$2

RewriteRule^(.*)/(.*)/(.*)/index.html$ $1/index\.php\?$2&nid=$3

RewriteRule^(.*)/(.*)/(.*)/index(.*).html$ $1/index\.php?$2&nid=$3&page=$4

RewriteRule^(.*)/(.*)/(.*)/a(.*).html$ $1/index\.php\?$2&nid=$3&article_id=$4

RewriteRule^(.*)/(.*)/(.*)/a(.*).html?(.*)$ $1/index\.php\?$2&nid=$3&article_id=$4&$5

RewriteRule^(.*)/(.*)/index.html$ $1/index\.php\?$2

RewriteRule^(.*)/(.*)/index(.*).html$ $1/index\.php\?$2&page=$3

RewriteRule^(.*)/(.*)/index(.*).html?(.*)$ $1/index\.php\?$2&page=$3&$4

RewriteRule^(.*)/(.*)/a(.*)_(.*).html$ $1/index\.php\?$2&article_id=$3&page=$4

RewriteRule^(.*)/(.*)/a(.*).html$ $1/index\.php\?$2&article_id=$3

RewriteRule^(.*)/(.*)/a(.*).html?(.*)$ $1/index\.php\?$2&article_id=$3&$4

Options +FollowSymLinks

RewriteEngine on

RewriteCond %{HTTP_HOST} ^index.php/(.*)$

RewriteRule ^(.*)$ /301.html [R=301,L]

RewriteRule ^([0-9]+).html /index.php/page-45-$1.html

以上为apache的伪静态规则。 rewrite ^/([a-z]+)/p_([0-9]+)\.html$ /list.php?id=$1 last转换后 ...这个会的人很少?看专业的网站试试...


欢迎分享,转载请注明来源:夏雨云

原文地址:https://www.xiayuyun.com/zonghe/538759.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-06-25
下一篇2023-06-25

发表评论

登录后才能评论

评论列表(0条)

    保存