WordPress.org

Ready to get started?Download WordPress

Forums

Default permalinks give 404 (4 posts)

  1. Bodhipaksa
    Member
    Posted 5 years ago #

    This issue arose with Utterli, but doesn't seem to be related to that service specifically. I posted an "utter" -- an audio blog post -- and when I tried to click on the permalink generated I got a 404.

    The permalink was along the lines of:
    http://www.bodhipaksa.com/archives/1558
    the post number being used as the post slug. This is an actual post, although one I created manually, not via Utterli.

    Now I can't understand why that URL doesn't work. It should be valid, I would have thought. The post does display on my home page.

    My permalink settings are for a custom structure, and are:
    /archives/%postname%

    The plugins I use are: Akismet, digg widget, Fold Page List, Kimili Flash Embed, Simple Tags, Subscribe To Comments, Theme Tester, the_excerpt Reloaded, Tweet You, Twitter Tools, WordPress Database Backup, and Yet Another Related Posts Plugin.

    Any ideas why these posts don't display?

  2. Shane G
    Member
    Posted 5 years ago #

    Hi,

    Please check .htaccess file with rewrite rules..there may be causing the issue.and also check permissions to the wo-contents folders recursively..if not then assign 755 permissions recursively.

    Thanks,

    Shane G.

  3. Bodhipaksa
    Member
    Posted 5 years ago #

    I have a complex .htaccess file because my wife's site has virtual hosting on my domain. The contents look like this:

    RewriteEngine on
    #
    # Canonicalize my domain name
    # If requested hostname contains "bodhipaksa.com" (any case)
    RewriteCond %{HTTP_HOST} bodhipaksa\.com [NC]
    # but isn't *exactly* "www.bodhipaksa.com" (must be www and lowercase, with no appended dot or port numbers)
    RewriteCond %{HTTP_HOST} !^www\.bodhipaksa\.com$
    # then redirect to canonical domain
    RewriteRule (.*) http://www.bodhipaksa.com/$1 [R=301,L]
    
    # Canonicalize darling's domain name
    RewriteCond %{HTTP_HOST} consciousmom\.net [NC]
    RewriteCond %{HTTP_HOST} !^www\.consciousmom\.net$
    RewriteRule (.*) http://www.consciousmom.net/$1 [R=301,L]
    #
    # Darling's site (assuming it has its own .htaccess file at /consciousmom/.htaccess)
    RewriteCond %{HTTP_HOST} ^www\.consciousmom\.net
    RewriteCond %{REQUEST_URI} !^/consciousmom/
    RewriteRule (.*) /consciousmom/$1 [L]
    #
    # My site
    # BEGIN WordPress
    RewriteCond %{HTTP_HOST} ^www\.bodhipaksa\.com
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    # END WordPress

    Apart from that there are a few permanent redirects going back to when my site was html.

    I don't know much about .htaccess rules. See anything in there that might cause the glitch I'm seeing?

  4. Bodhipaksa
    Member
    Posted 5 years ago #

    Well, doesn't seem like it was an htaccess thing. The htaccess is now down to the first block of rules (canonicalizing my domain name) and the last block, which contains the standard WordPress rules.

    Any ideas welcomed.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags