homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

Older Entries 'Link' doesn't work on custom structure

5+ Year Member

Msg#: 4360452 posted 11:08 am on Sep 9, 2011 (gmt 0)

Can anyone help with a problem.

I have used wordpress on my Blog for a couple of years without having this problem.

The problem is that with the permalinks set to Custom Structure: /index.php/%post_id%/%postname%/ the 'older entries' link doesn't work and it adds in another "Index.php" (blog/index.php/Index.php/page/2/) into the url when clicking on the 'older entries' link from the 'home page of the wordpress blog. IF going to any category and clicking on older entries it works fine.

I realy like the use of this custom structure for seo purposes as it gives the title/url keyword strength.

My Wordpress guy has emailed me to say that having changed the permalinks setting back to 'default' the older entries link works fine and that it is a server issue. But the default permalink setting is poor in terms of seo.

This is the reply that I have received from Wordpress guy.

I believe this is a permalink problem that is occurring because you're hosting wordpress on a windows server. Is there any way you could switch your hosting to a linux or unix server?

I changed the permalinks to the default, and the older entries link works fine. However, if you have a lot of links to the posts, or if others are linking to your posts, the links will break. To change it back, go to Settings > Permalinks and add this in the Custom Structure: /index.php/%post_id%/%postname%/

You can ask your host if they use mod-rewrite. See [codex.wordpress.org...] for more details.

I know this doesn't help much, but it's a windows server thing, not anything specific to the theme.

I find it hard to believe that this is server issue due to being on a Windows server. Can anyone else advise? (this also means that previously written blog posts of at least one a day when found in search engines don't work as the post link is not valid)

The following is the code from the index.php

<?php get_header(); ?>
<div id="content">
<?php include_once(ABSPATH.'wp-content/themes/greenwidget/sidebar-left.php'); ?>
<div class="main">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p class="postmetadata">Posted on <?php the_time('F jS, Y'); ?> by <?php the_author(); ?> in <?php the_category(', ') ?> &raquo; <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?> <?php edit_post_link('&raquo; Edit', '', ''); ?></p>
<div class="entry">
<?php the_content(); ?>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', ''); ?> </p>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>



WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4360452 posted 1:30 pm on Sep 9, 2011 (gmt 0)

Have you called the host and asked them for help? Your developer might be right but it's hard to say without knowing all of the details. I'd start with the host or have your developer chat with the host and see if they can work it out.


5+ Year Member

Msg#: 4360452 posted 1:40 pm on Sep 9, 2011 (gmt 0)

Thanks lorax, I have spent an hour or so on chat with my hosting technical guys and he wasn't able to resolve it and asked me to submit a support ticket and they will look into it further. The problem I have previously encountered is that the hosting company say they don't support other software but where I am supposed to find an answer is not easy. I have posted in Wordpress forum with no reply. The custom links HAVE worked for a long time and I have hundreds of posts with custom links generated and I get a fair amount of search engine traffic to them. To lose that traffic in favour of the default permalink is painful. AT the moment I have left the custom link in place BUT the older entries link doesn't work..


5+ Year Member

Msg#: 4360452 posted 10:10 am on Sep 10, 2011 (gmt 0)

THis is the reply I have receieved from my hosting company which I have no idea how to implement (not safely and without causing potentialo problems)

Your WordPress site is hosted on windows server and on windows server mod-rewrite is not supported.
WordPress requires rewrite module for the custom permalinks. You do not have any such rewrite module installed on
the server. If you wish you can use Helicon ISAPI rewrite module on your server. You can refer to greenwidget.com/
to know better about Helicon ISAPI.

Can anyone help with this? I changed servers a few months ago and had nothing but problems and really don't want to go through that again. I seem to be 'stuck between a rock and a hard place'.


WebmasterWorld Administrator lorax us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

Msg#: 4360452 posted 5:08 pm on Sep 10, 2011 (gmt 0)

Well it sounds like your developer was right. The issue is that the server doesn't support the permalink structure. I'm afraid that you'll either need to follow their direction re: Helicon ISAPI or switch to a Linux base server - which would save you a lot of headaches almost immediately.


Msg#: 4360452 posted 1:29 am on Sep 17, 2011 (gmt 0)

There is a plugin that will handle all your permalink redirections and keeps your ranking intact on google. Check out the plugin i used to change the permalink structure recently.

Its called the permalinks-migration-plugin-for-wordpress. Search on google and you will find this plugin. Your issue gets resolved by this.


5+ Year Member

Msg#: 4360452 posted 10:57 pm on Nov 10, 2011 (gmt 0)

Now moved from a Windows server back to a Linux server that has resolved problems.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved