WordPress.org

Ready to get started?Download WordPress

Forums

404 error for posts but not pages with custom permalinks (1 post)

  1. littletornado
    Member
    Posted 5 years ago #

    Hi all,

    I just set up custom permalinks on a new blog and they're working fine for the pages. However, the posts are returning a 404 error.

    I've set up the permalinks to use /%monthnum%/%postname%, and they're looking for the right URL but not finding the post.

    The pages are appearing with just the postname -- again, working just fine.

    The WordPress rewriting rules are the first section of my current .htaccess file -- pasted below.

    Can you tell me what I'm doing wrong?

    Thanks much!

    ******MY HTACCESS FILE*********

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

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.therevenuegame\.com$
    RewriteRule ^(.*)$ http://www.therevenuegame.com/$1 [R=301,L]
    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(([^/]+/)*)index\.html\ HTTP/
    RedirectMatch 301 (.*)\.html$ http://www.therevenuegame.com$1.php
    </IfModule>

Topic Closed

This topic has been closed to new replies.

About this Topic