• Hey,

    I have had WordPress up and running for about 4 months now, all running perfectly well, I have around 70 posts and have recently been transfering the templates onto my new site design.

    In the process I have messed something up and am not sure what. When I click the links to take me to the single page the page just doesn’t load.

    The page of my site WP is isntalled is:

    http://www.pet-detectives.co.uk/lost-cats/

    If you click the first missing cat:

    “Missing Black and White Cat from Burgess Hill in West Sussex”

    you will see it links to the right page, but that page doesn’t load. I have logged in to my admin, and all the post information is still there.

    Any help would be so much appreciated.

    Thanks in advance

    S

Viewing 10 replies - 1 through 10 (of 10 total)
  • Have you double-checked that you didn’t screw up your permalink settings?

    Thread Starter simonbailey

    (@simonbailey)

    How do I check that?

    Thread Starter simonbailey

    (@simonbailey)

    The code I am using to link to the permalink from each post is:

    <p><?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?></p>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”post” id=”post-<?php the_ID(); ?>”>

    <h4>” rel=”bookmark” title=”Permanent Link to <?php echo strip_tags(the_title(”, ”, false) ); ?>”><?php the_title(); ?></h4>

    <small><?php the_time(‘F jS, Y’) ?> <!– by <?php the_author() ?> –></small>

    <?php the_excerpt(‘Read the rest of this entry »’); ?>

    <p class=”postmetadata”>Posted in <span class=”link”><?php the_category(‘, ‘) ?> | <?php edit_post_link(‘Edit’, ”, ‘ | ‘); ?> <?php my_comments_popup_link(‘No Comments »’, ‘1 Comment »’, ‘% Comments »’); ?></span></p>

    <br class=”clear” />

    </div>

    <?php endwhile; ?>

    <!–<div class=”navigation”>

    <div class=”alignleft”><?php next_posts_link(‘« Previous Entries’) ?></div>
    <div class=”alignright”><?php previous_posts_link(‘Next Entries »’) ?></div>
    –>

    <p><span class=”link”><?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?></span></p>

    <!–</div>–>

    <?php else : ?>

    <h2 class=”center”>Not Found</h2>
    <p class=”center”>Sorry, but you are looking for something that isn’t here.</p>
    <?php include (TEMPLATEPATH . “/searchform.php”); ?>

    <?php endif; ?>

    Any help will be so good, really want to get this fixed as soon as I can :/

    Thread Starter simonbailey

    (@simonbailey)

    Can anyone help?

    See this link: http://codex.wordpress.org/Using_Permalinks

    Here’s what I think: you’re copying a template from one site to another. But on your old site, when you set your Permalink format from the default (blahblah/?p=5) to a fancy format, it updates your .htaccess file.

    If you do not have an updated .htaccess file on the new site, it won’t work. Nor will it work without mod_rewrite() installed.

    What happens if you go to Options/Permanent settings, and temporarily change your permalink format to the default ugly one?

    Thread Starter simonbailey

    (@simonbailey)

    Hi xcott, thanks for replying bud.

    I tried to switch it back to the default ugly URL structure, but it has made no difference. Have left is as that, could you take a look?

    I didn’t change the template or htaccess when I implemented the new design, I just overwrote the existing code (around the wordpress code). The wordpress code remains as it was before.

    It is strange, because the list items for archived results work (the page 2,3,4,5 etc..)

    Not a clue what to do 🙁

    Okay, sorry that doesn’t shed any light on things.

    Can you post the WordPress section of your .htaccess file? No matter what, if you’re using a fancy format for the Permalinks, there will have to be an .htaccess file that provides settings for mod_rewrite to use.

    Also, for a sanity check can you post the same section from the .htaccess of your lost dogs blog, which we know works?

    Thread Starter simonbailey

    (@simonbailey)

    Sure, thanks for all your help…

    The htaccess file for lost-cats contains:

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

    The htaccess file for lost dogs contains:

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

    The code in the wordpress admin sections says to use the following for the htaccess…

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

    Is this any help?

    Thread Starter simonbailey

    (@simonbailey)

    I think I have fixed it! It was errors in my code.

    I’m so sorry, just panicked a bit!

    Thank you so much for all your help!

    Sorry again :/

    simon, could you explain a little bit more what you fixed to get it to work? I think i’m having the same problem & I’m completely lost. thanks a lot, mikelite

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WP Internal Pages Won’t Work’ is closed to new replies.