WordPress.org

Support

Support » How-To and Troubleshooting » Permalink 404’s

Permalink 404’s

  • timscullin
    Member

    @timscullin

    I have been trying to fix a 404 error and struggling.

    I set up my first WP page a few days ago and it was going all good.
    http://www.timscullin.com
    Unfortunately I wanted to update the permalinks to get pretty urls (SEO purposes right..) But as soon as I did I get 404 errors for all my pages.

    I have checked the WP is updating my .htaccess file and that is working normally. Its contents are:

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

    # END WordPress

    and my permalink sturcture is custom: /%category%/%postname%

    Please help 🙂

    Cheers

    Tim

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi,

    Please edit your .htaccess file and and add this code:

    # 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

    This should be resolve the issue.

    Thanks,

    Shane G.

    Hi

    The “category” part is supplied by default by WordPress when you display a category page. Try this for a permalink – see if it serves your needs
    /%postname%/

    Then display a category page and you will see what I mean.

    Shane G

    Thank you for this htaccess code, it has saved me many (more) hours of tearing my hair out.
    Slightly balder,
    satoridork

    Shane G.
    Member

    @shane-g-1

    Hi,

    Nice to hear that your issue gets resolved

    Thanks,

    Shane G.

    Hi everyone,
    A problem that I’ve developed just in the last few hours. I am new to all this website and code stuff and was trying to get my website up and running I changed the permalink on my developing website thinking that it would correspond to my one currently in use. Now what’s happened is that I’ve saved the changes but now I can’t get access to my dashboard through the wordpress site, instead I get error 404 and have no idea of how to rectify it. Any thoughts considering that every time I got to my log in page with wordpress and type in my details it says error 404.

    Please help.
    Thank you
    Ed

    Hi everyone,

    Just wanted to also add that I can’t even log in to my account now and have my website construction is merely the basic one without the theme. Does anyone know how to help me at least get back into my dashboard. Any help would be appreciated.

    Thanks
    Ed

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Permalink 404’s’ is closed to new replies.