Forums

Sidebar Links are missing the "/" (and, of course, don't work) (4 posts)

  1. martin.pippin
    Member
    Posted 2 years ago #

    On the site http://www.knoxvillepet.com all the links like Archive>April 2010 have link that are formed like http://www.knoxvillepet.com2010/04. Please note the absence of the forward slash after ".com"

    I have never seen this before. Any ideas?

  2. Jonas Grumby
    Member
    Posted 2 years ago #

    Check your .htaccess file. The slash should be in there. It should look like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Also check your permalink structure to make sure the slash is there. If you are using a Custom Structure it should begin and end with a slash. For example:

    /%year%/%category%/%postname%/

  3. martin.pippin
    Member
    Posted 2 years ago #

    This is my htaccess file...

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Everything looks fine there I think.

    I had to change my permalinks to custom and to /%postname%/ . They are working now.

    Thanks

  4. Jonas Grumby
    Member
    Posted 2 years ago #

    The .htaccess file looks fine. It must have been the Permalink setup.

    BTW, /%postname%/ is not really the greatest choice for Permalink structure. There is documentation that explains why. YMMV.

Topic Closed

This topic has been closed to new replies.

About this Topic