mod_rewrite链接不一致

时间:2017-06-01 15:50:21

标签: php google-chrome mod-rewrite

我有一个包含相同路径的链接的导航列表。使用mod_rewrite评估链接。除了第一个之外的所有工作都很好。第一个(概述)转到错过mymathsmatch / part的链接。

有没有人知道为什么会这样?

这些是链接:

<div id="collapsable-nav" class="collapse navbar-collapse">
       <ul id="nav-list" class="nav navbar-nav navbar-right">
    <li>
          <a href="/mymathsmatch/Explorers/percentBusiness/percentStock"><span class="glyphicon glyphicon-record"></span><br class="hidden-xs"><br class="hidden-xs">Overview</a>
    </li>
    <li>
          <a href="/mymathsmatch/Explorers/stockpercent1/percentStock"><span class="menumber">1</span><br class="hidden-xs"><br class="hidden-xs">20 Apr</a>
    </li>
    <li>
          <a href="/mymathsmatch/Explorers/stockpercent2/percentStock"><span class="menumber">2</span><br class="hidden-xs"><br class="hidden-xs">27 Apr</a>
    </li>
    <li class="active">
          <a href="/mymathsmatch/Explorers/stockpercent3/percentStock"><span class="menumber">3</span><br class="hidden-xs"><br class="hidden-xs">4 May</a>
    </li>
    <li>
          <a href="/mymathsmatch/Explorers/stockmarketnew/percentStock"><span class="menumber">4</span><br class="hidden-xs"><br class="hidden-xs">11 May</a>
    </li>
    <li>
    <a href="/mymathsmatch/Explorers/makemoneyStock/percentStock"><span class="menumber">5</span><br class="hidden-xs"><br class="hidden-xs">18 May</a>
    </li></ul><!-- #nav-list -->
</div>

这是.htaccess文件

RewriteEngine on
RewriteBase /mymathsmatch/

RewriteRule \.(css|jpe?g|gif|png)$ - [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/?$ colltemplate.php?MCname=$1&collname=$2&progname=$3 

由于

0 个答案:

没有答案