ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Pagination links - "First" link without trailing slash

December 01, 2010 3:04pm

Subscribe [4]
  • #1 / Dec 01, 2010 3:04pm

    Steve Garcia

    57 posts

    Currently on EE 1.7.0 and have the pagination links at the bottom of a search results page. When there are more than five pages, the “first” and “last” links appear. The arrows, numbers and “last” links work fine, however the “first” link doesn’t add a trailing slash at the end which goes to a 404 page when clicked.

    Couldn’t find where these link settings could be adjusted. Here’s my code:

    {if paginate}
        <div class='pagination_links'>
          {paginate}
        </div>
        {/if}

    Pretty straightforward. Any ideas?

    Thanks!

    fyi - the site is still in development (launching soon) so if you need to see the page, PM me and I can send the url.

  • #2 / Dec 02, 2010 9:50am

    Sue Crocker

    26054 posts

    What else is in your search results page?

  • #3 / Dec 02, 2010 9:53am

    Steve Garcia

    57 posts

    Sorry, should have included it:

    {exp:search:search_results}
          <tr>
            <td class='part'>{title}</td>
            <td class='mfg'>{parts_manufacturer}</td>
            <td class='desc'>{parts_description}</td>
            <td class='family'>{parts_associated_series limit="3" backspace="2"}<a href="#" title="{title}">{title}</a>, {/parts_associated_series}</td>
            <td class='quote center_text'>
              <label class='none'>{title}</label>
              <input id='{title}' name='{title}' type='checkbox' />
            </td>
          </tr>
        {/exp:search:search_results}
  • #4 / Dec 03, 2010 2:28am

    John Henry Donovan

    12339 posts

    SGarcia,

    Are you using a htaccess to remove your index.php?
    Can you test with that disabled and index.php back in place in your General Configuration

  • #5 / Dec 03, 2010 9:32am

    Steve Garcia

    57 posts

    That looks to be the cause. We’re using Leevi’s htaccess generator which has a section in the file that’s supposed to add a trailing slash to everything that doesn’t have an extensions so it should be adding the trailing slash. Will need to look into it further.

    Thanks for your help

  • #6 / Dec 03, 2010 9:42am

    Steve Garcia

    57 posts

    I tried using my custom htaccess file and that seems to be working. For those who are having the same problem, here’s my rewrite code.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteRule ^(.*)$ /index.php?$1 [L]
    </IfModule>
  • #7 / Dec 03, 2010 9:48am

    Ingmar

    29245 posts

    Thanks for sharing your solution with us. Please post again in case there’s anything else.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases