奇怪的分页问题在链接之间添加/ index/ - 表达式引擎

Tuz*_*Tuz 7 php .htaccess pagination codeigniter expressionengine

在使用{pagination_links}标记时,我似乎在添加/ index /的新闻部分中出现分页问题.

我的新闻页面有新闻/索引的模板路径,帖子模板是新闻/帖子.

我使用结构与新闻/帖子作为附加到新闻/索引页面的列表,添加|编辑帖子.

如果你看看有问题的网站:http://www.wilbyltd.co.uk/news滚动到底部你会看到分页,如果你点击1 | 2 | 3或下一页或最后一页你将获取请求的页面,网址看起来像/ news/P6,但是现在在下一页上如果你再次进入分页并点击其中任何一个,你会发现它已经回到第1页并且网址有/ news/index它似乎是在links/index /之间追加或插入.

我已尝试在频道条目中使用paginate_base ="",但添加一个基础会阻止类别进行分页,类别还会在链接之间添加/ index /吗?

我曾想过攻击核心,但似乎是错误的方法,以防万一它得到更新.

我已经尝试.htaccess删除索引,但是没有用.

RewriteRule ^/news/index/(.+)$ /news/$1 [L]
Run Code Online (Sandbox Code Playgroud)

我已经查看了index.php的配置,该配置已经被取消并且已经使用了.htaccess.

我查看了频道设置.

我试过动态="关闭"|动态="开启"

我理解新闻/索引它是页面查看的正确路径,但如果是这种情况,为什么它不接受分页?

如果有人能够对此有所了解,我将非常感激,这里是包含分页的代码.

{exp:channel:entries channel="posts" limit="6" dynamic="on" paginate="bottom" orderby="entry_date" sort="desc"}
  <div class="news-snippet span9">
   <a href="{url_title_path=">
   <div class="date-published textalign-center">
    <span class="day">{entry_date format="%d"}</span><span class="day-suffix">{entry_date format="%S"}</span>
    <span class="month">{entry_date format="%F"}</span>
   </div>
   </a>
   <div class="news-snippet-body pull-right">
    <div class="news-snippet-top-shadow">
     <div class="news-snippet-bottom-shadow">

      <a href="{url_title_path=">
       <div class="news-snippet-content clearfix">
        <div class="title">
         <h3>{title}</h3>
        </div>
        {if news_feature_image}
        <div class="clearfix image">
         <img src="{news_feature_image}" />
        </div>
        {/if}
        <p>{news_short_description}</p>
       </div>&lt;!-- end content --&gt;
      </a>

      <div class="news-snippet-options clearfix">
       <div class="news-tags pull-left">
        <i class="icon-tags"></i>
        {exp:tagger:tags entry_id="{entry_id}" }
           <a href="/news/tags/{tagger:urlsafe_tagname}" title="{tagger:tag_name}"><span class="label label-inverse tags">{tagger:tag_name}</span></a>
        {/exp:tagger:tags}
       </div>
       <div class="social-share pull-right textalign-center">
        <i class="icon-random"></i>
        <a class="addthis_button"url="{url_title_path="title="{title}" href="http://www.addthis.com/bookmark.php?v=300&amp;pubid=ra-5141a60a37fa6e4e">Share</a>
       </div>
      </div>

     </div>&lt;!-- end bottom-shadow --&gt;
    </div>&lt;!-- end top-shadow --&gt;
   </div>&lt;!-- end snippet-body --&gt;        
  </div>&lt;!-- end news-snippet --&gt;

  {paginate}       
   <div class="clearfix paginate">
     {pagination_links}
     <div class="total-pages pull-left">
      <p>Page {current_page} of {total_pages} pages</p>
     </div>
     <div class="pagination pagination-mini pull-right">
      <ul>
      {first_page}
       <li><a href="{pagination_url}" class="page-first">First Page</a></li>
      {/first_page}

      {previous_page}
       <li><a href="{pagination_url}" class="page-previous">Previous Page</a></li>
      {/previous_page}

      {page}
       <li><a href="{pagination_url}" class="page-{pagination_page_number} {if current_page}active{/if}">{pagination_page_number}</a></li>
      {/page}

      {next_page}
       <li><a href="{pagination_url}" class="page-next">Next Page</a></li>
      {/next_page}

      {last_page}
       <li><a href="{pagination_url}" class="page-last">Last Page</a></li>
      {/last_page}
      </ul>
     </div>
    {/pagination_links}
   </div>&lt;!-- end clearfix --&gt;
  {/paginate}
 {/exp:channel:entries}
Run Code Online (Sandbox Code Playgroud)

我也在Ellis Labs论坛上讨论了几周:http://ellislab.com/forums/viewthread/237601/

Car*_*ano 0

尝试覆盖频道条目标记中的 {paginate_base} 参数

{exp:channel:entries channel="posts" paginate_base="news/" ...}
Run Code Online (Sandbox Code Playgroud)