早教吧作业答案频道 -->其他-->
求一个伪静态写法rewrite^/vod-(.*)\.html$/index.php?s=/Home-vod-$1;rewrite^/news-(.*)$/index.php?s=/Home-news-$1;rewrite^/ajax-(.*)$/index.php?s=/Home-ajax-$1;rewrite^/tag-(.*)$/index.php?s=/Home-tag-$1;rewrite^/gb-(.*)$/index.php?s=
题目详情
求一个伪静态写法rewrite ^/vod-(.*)\.html$ /index.php?s=/Home-vod-$1;rewrite ^/news-(.*)$ /index.php?s=/Home-news-$1;rewrite ^/ajax-(.*)$ /index.php?s=/Home-ajax-$1;rewrite ^/tag-(.*)$ /index.php?s=/Home-tag-$1;rewrite ^/gb-(.*)$ /index.php?s=/Home-gb-$1;rewrite ^/cm-(.*)$ /index.php?s=/Home-cm-$1;能不能把/vod-read-id-31.html修改成/vod/31/.htaccess的
▼优质解答
答案和解析
RewriteRule ^(.*)/question/([a-z0-9\-] )\.html$ $1/question\.php\?qid=$2 [I,O] RewriteRule ^(.*)/browse/([a-z0-9\-] )\.html$ $1/browse\.php\?sortid=$2 [I,O] RewriteRule ^(.*)/browse/([0-9] )-([0-9] )\.html$ $1/browse\.php\?sortid=$2
看了求一个伪静态写法rewrite...的网友还看了以下: