WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Missing slash in URL (5 posts)

  1. Bodhipaksa
    Member
    Posted 8 years ago #

    I have the following code in the sidebar of a site I set up for some friends:

    <li><h2>Events</h2>
    <ul>
    <?php wp_get_archives('type=monthly&cat=2&showposts=5'); ?>
    </ul>
    </li>

    When I click on the archive link in the sidebar there's a missing slash after the domain name. Instead of getting:

    http://nagalokabuddhistcenter.org/2006/03/ I get
    http://nagalokabuddhistcenter.org2006/03/

    Any ideas what could be causing this? Any help much apprecaited.

  2. Aleister
    Member
    Posted 8 years ago #

    It sounds like a problem with your permalink setting..

    Under 'Options -> Permalinks' what do you have for 'custom structure' ?

    It should start with a foward slash.

  3. Bodhipaksa
    Member
    Posted 8 years ago #

    Under custom structure I have:

    /category/postname

    (exactly as typed here).

  4. Bodhipaksa
    Member
    Posted 8 years ago #

    Gotcha! Changed it to /%category%/%postname% and now it's working fine.

    (Edit). And thanks for the pointer and the quick response.

  5. Aleister
    Member
    Posted 8 years ago #

    Ah, good :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags