Home >Backend Development >PHP Tutorial >晕了。为什么这个RewriteRule不对呀。解决方法

晕了。为什么这个RewriteRule不对呀。解决方法

WBOY
WBOYOriginal
2016-06-13 10:11:18811browse

晕了。为什么这个RewriteRule不对呀。

PHP code
<!--Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->^([a-zA-Z\-]+)-(exam)$ string-exam.php?name=$1







------解决方案--------------------
PHP code
RewriteRule ^([a-zA-Z\-]+)-exam$  $1-exam.php<div class="clear">
                 
              
              
        
            </div>
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