|Older Entries 'Link' doesn't work on custom structure|
| 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(); ?>
<?php include_once(ABSPATH.'wp-content/themes/greenwidget/sidebar-left.php'); ?>
<?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(', ') ?> » <?php comments_popup_link('No Comments', '1 Comment ', '% Comments'); ?> <?php edit_post_link('» Edit', '', ''); ?></p>
<?php the_content(); ?>
<p class="postmetadata"><?php the_tags('Tags: ', ', ', ''); ?> </p>
<?php endwhile; ?>
<div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
<?php endif; ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
| 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.
| 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..
| 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'.
| 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.
| 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.
| 10:57 pm on Nov 10, 2011 (gmt 0)|
Now moved from a Windows server back to a Linux server that has resolved problems.