如何用 .htaccess+rewrite 实现文件映射?

2024-11-11 08:30:17
推荐回答(2个)
回答(1):

在.htaccess中通过正则表达式映射需要伪静态的页面。URL正 则表达式如下:RewriteEngine on
RewriteRule index.html index.php
RewriteRule (\d+).html$ info\.php\?infoid=$1

回答(2):

http://zhumeng8337797.blog.163.com/blog/static/10076891420114247593144你不妨进入参考一下。。。