Forums

Changing permalinks causes 404 erros. (4 posts)

  1. LeifAndersen
    Member
    Posted 2 years ago #

    I'm still just testing out wordpress on my own servers. I imported a wordpress.com blog, and went to change the permalinks. When I did that, all of the posts still showed up on the home page, however, when I went to view a full post, I gog a 404 error. Is this normal, and what can I do to combat it.

  2. xewax
    Member
    Posted 2 years ago #

  3. Shane G.
    Member
    Posted 2 years ago #

    Hi,

    Set your desired permalink and 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.

  4. LeifAndersen
    Member
    Posted 2 years ago #

    @xewax I'm looking to be able to get to my links from my own webpage, not google, but thanks anyway. (Or maybe I just mis-interpreted the post).

    @Shane, I tried it, and it didn't work. Can I ask what on earth that was supposed to do (and why it's not put in as part of installing wordpress in the first place). Also, this may be a little OS specific, but why was htaccess in /etc/wordpress rather than in the same place my wordpress install is /var/www/wordpress? Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags