Home >Backend Development >PHP Tutorial >求大神指导伪静态正则.

求大神指导伪静态正则.

WBOY
WBOYOriginal
2016-06-13 12:21:53911browse

求大神指点伪静态正则...
目的是想让 http:www.aa.com /member/myinfo.php  -> http:www.aa.com /member/myinfo/

我是这样写的:

RewriteRule ^member/(.+?)/ ^member/(.+?)\.php

可是没有效果...

求指点指点,谢谢
------解决思路----------------------

<br /><IfModule mod_rewrite.c><br />RewriteEngine On<br /><br />RewriteRule ^member/(.+?)/$ member/$1\.php [NC]<br /></IfModule><br />

Statement:
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