伪静态

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-13 13:48:331158Durchsuche

求教:伪静态

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->
RewriteEngine On

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





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

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

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

试试呢!
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Vorheriger Artikel: 请求来解答 Nächster Artikel: pdf2swf如何动态的转换