rewrite规则 比如:把网站http://test.com/test/123456.html重写到http://test.com/test/test.php?id=123456只把test目录下的纯数字.html重写。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 RewriteEngine on RewriteCond %{HTTP_HOST} ^test\.com$ RewriteRule ^/test/(\d+)\.html$ /test/test.php?id=$1 2楼已经给出代码了,我就不说什么了.不懂得可以具体看看apache的手册的重写部分.很详细. RewriteEngine on RewriteCond %{HTTP_HOST} ^test\.com$ RewriteRule ^/test/([0-9]+)\.html$ /test/test.php?id=$1 [L] file_get_contents的内存问题 我在买了空间,然后把index.php放上去,怎么才能连接mysql?? linux下的乱码问题 PHP中字符的替换? FFMPEG 在windows2003下不生效 大侠看看这个网页的加密 【smarty】 不知道大家遇到过没有! php有漏洞吗?哪位大虾介绍?? php做条形图 JpGraph php表单保存状态 history.go(-1) php代码中 JS代码的问题
RewriteCond %{HTTP_HOST} ^test\.com$
RewriteRule ^/test/(\d+)\.html$ /test/test.php?id=$1
RewriteCond %{HTTP_HOST} ^test\.com$
RewriteRule ^/test/([0-9]+)\.html$ /test/test.php?id=$1 [L]