• Resolved jbeidler

    (@jbeidler)


    Hello,

    My blog’s index page uses the standard <?php wp_get_archives('type=monthly'); ?> to generate a link to the archive, but the URL is missing a trailing slash after the domain name–it looks like <https://www.ncacleaning.com2008/02&gt;.

    The page is here: https://www.ncacleaning.com/index.php/faq/newsletter/

    WP is installed in the blog subdirectory.

    WordPress address is set to https://www.ncacleaning.com/blog and Blog address is set to https://www.ncacleaning.com.

    The inclusion of index.php in the URL makes it possible for me to use pretty permalinks despite Yahoo Hosting’s lack of support for .htaccess. The hack, which I found in a post on another forum, involves setting the “Custom permalink structure” to /index.php.

    I would be glad to provide more information if someone would tell me what might be relevant to this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    The “Custom Permalink Structure” cannot be set to just /index.php. It must have something else in it, like the postname or some other kind of identifier that will let the URL specify a single post.

    So /index.php is not enough.

    /index.php/%year%/%monthnum%/%day%/%postname%/ would be enough. Or just /index.php/%postname%/ for that matter.

    The point is that your workaround is not to use just /index.php, but to add that to the front of whatever else you want the permalink structure to be normally.

    Fix that, and your problem will go away. You’ll also be able to click on single posts and get them as single posts again.

    Thread Starter jbeidler

    (@jbeidler)

    That did it! I see I still have a lot to learn about WP, but I’m glad there was a quick fix for this problem. Many thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Link to archives is missing slash after domain name’ is closed to new replies.