WordPress.org

Ready to get started?Download WordPress

Forums

Help: Permanlinks broke my links (4 posts)

  1. scobb99
    Member
    Posted 4 years ago #

    I have written by blog for years with page numbers like this:
    http://cobbsblog.com/blog/?p=611

    But people said I should change it so the link was more descriptive. So I changed the Permalinks setting to:

    /%postname%/

    But now when Google tells someone to go to:
    http://cobbsblog.com/blog/?p=611

    they are sent to:
    http://cobbsblog.com/blog/and-the-damage-done-hemochromatosis-recap/

    and that says Link broken.

    Why on earth does this happen and how do I fix this before my blog posts drop down the search results as "missing" ?

    Thanks...Stephen

  2. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    Reset your desired permalink from wordpress admin area and add this code in htaccess of your blog/site:

    # 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

    After that have a check with blog posts and pages.

    Thanks,

    Shane G.

  3. anyalynn
    Member
    Posted 4 years ago #

    Hi,

    I am having the same problem on http://www.anyalynn.com, but I have pages not posts. I changed the .htaccess file as you suggested above, but I still only get 404s on my website. If I change back to permalinks it works fine.

  4. scobb99
    Member
    Posted 4 years ago #

    Thanks Shane. I think the problem was my .htaccess file. For one thing it was located in wp-admin directory. I moved it to the blog root and it seems to be working.

    I also had the syntax of the custom permalink entered wrong but fixing that did not fix the problem so I'm thinking it was the .htaccess.

    I don't normally panic but this one was weird, totally hiding my pages for a while there.

    Thanks for the prompt response.

    S.

Topic Closed

This topic has been closed to new replies.

About this Topic