WordPress.org

Ready to get started?Download WordPress

Forums

Error when changing Permalinks (2 posts)

  1. kentoceano
    Member
    Posted 1 year ago #

    Hi, my links dont work when I try to make them "pretty" and change them, and Ive found many people with the same problem online but I cannot understand the solution given (since I am a complete beginner with wordpress and website creation in general). Could someone explain it to me in dummy terms please! For example, here is this solution I found in the forums:

    "What parameters did you enter for the permalinks?

    I'd try and undo the htaccess and anything else and start from there

    If you have other mod_rewrite rules to include put them BEFORE WordPress's rules

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

    # END WordPress"

    I have NO idea what this person is talking about, where do I go to undo htaccess? Could someone explain this? Much appreciated.

  2. Jess
    Member
    Posted 1 year ago #

    The .htaccess file is a small file that lives on your server, where you installed WordPress.

    You can edit the .htaccess file by FTP, shell, or (possibly) your host's control panel.

    I find it easiest to download it to my computer via FTP and use a text editor, then upload the new file. You'll probably have to enable the visibility of hidden files to find it.

    Once you've found it and have it open in your text editor, copy and paste this after all other material in the file:

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

    However, if anything else in the file exists with "BEGIN WordPress" - replace it with this to reset things back to the standard setup.

    Then save and upload the new .htaccess to copy over the old one on the server.

Topic Closed

This topic has been closed to new replies.

About this Topic