早教吧 育儿知识 作业答案 考试题库 百科 知识分享

求一个伪静态写法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...的网友还看了以下: