当前位置: 代码迷 >> PHP >> 伪静态
  详细解决方案

伪静态

热度:185   发布时间:2012-03-09 16:54:57.0
求教:伪静态
PHP code

RewriteEngine On

RewriteRule ^/test.xml$ /seophp/test [L]





以上是我书写的伪静态的规则 希望达到的效果是当访问:http://localhost/test.xml时相当于访问http://localhost/seophp/test
为何运行不成功呢 求大侠指教

------解决方案--------------------
RewriteEngine On

RewriteRule ^/(.*)\.xml$ /seophp/$1[L]

试试呢!
  相关解决方案