WordPress.org

Ready to get started?Download WordPress

Forums

Permalink 404's (7 posts)

  1. timscullin
    Member
    Posted 5 years ago #

    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

  2. Shane G
    Member
    Posted 5 years ago #

    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.

  3. stvwlf
    Member
    Posted 5 years ago #

    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.

  4. satoridork
    Member
    Posted 4 years ago #

    Shane G

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

  5. Shane G.
    Member
    Posted 4 years ago #

    Hi,

    Nice to hear that your issue gets resolved

    Thanks,

    Shane G.

  6. gvnor
    Member
    Posted 4 years ago #

    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

  7. gvnor
    Member
    Posted 4 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags