伪静态

WBOY
Release: 2016-06-13 10:10:26
Original
909 people have browsed it

求教:伪静态

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->RewriteEngine OnRewriteRule ^/test.xml$ /seophp/test [L]
Copy after login


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

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

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

试试呢!
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template