Hi,
Disable and re-enable your customized permalinks settings which should resolve the issue..if it does not then add this code in htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
ErrorDocument 404 /index.php?error=404
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Thanks,
Shane G.
I went to Settings/Permalinks and it was on Day and name, changed to Default and then back to that again and nothing!
Is this a code you’re presenting me with and where do I enter this code?
Thanks for your help!!
I noticed that in the backend of my Site, there wasn’t a “Page” titled “Achives” and so I added it. It did correct the Error Page message when clicking on the Archives tab on my Horizontal Menu but now there are no stories that appear there.
Do I still put in that code (above) in the ht-access or is something different required now?
Ignore the .htaccess info. It has nothing to do with this problem. It looks like your theme should have a custom Archives template file but that this file is missing – so you’ll need to create one yourself.
Make a copy of page.php and name this new file archives.php. Edit the page and at the very top, add:
<?php
/*
Template Name: Archives
*/
?>
Find the block that starts with <?php if (have_posts()) : while (have_posts()) : the_post(); ?> and ends with <?php endwhile; endif; ?> and replace it with:
<h2>Archives by Month:</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
<h2>Archives by Subject:</h2>
<ul>
<?php wp_list_categories(); ?>
</ul>
Edit your Archive page and apply this new template.
I have a Archives Page Template (archives.php) and it looks like this:
<?php
/*
Template Name: Archives
*/
?>
<?php get_header(); ?>
<div id=”content_box”>
<?php include (TEMPLATEPATH . ‘/l_sidebar.php’); ?>
<div id=”content” class=”pages”>
<h2>Browse the Archives…</h2>
<div class=”entry”>
<h3 class=”top”>by month:</h3>
<?php wp_get_archives(‘type=monthly’); ?>
<h3>by Category:</h3>
<?php wp_list_categories(‘title_li=0’); ?>
</div>
<div class=”clear rule”></div>
</div>
<?php include (TEMPLATEPATH . ‘/r_sidebar.php’); ?>
</div>
<?php get_footer(); ?>
It looks like that first block is already part of itbut can’t find the part you had said to replace.
Just wanted to bump this to the front, to see if I can get it resolved today.