WordPress.org

Ready to get started?Download WordPress

Forums

.htaccess file is there, but permalinks aren't working (14 posts)

  1. rubyfruitradio
    Member
    Posted 6 years ago #

    I am trying to fix my permalinks. The wordpress console tells me that I need to update my .htaccess file because I don't have one. However, I put a .htaccess.txt file in the root of the word press directory and changed the permissions so it's writable and things still aren't working. I updated the file but the links still aren't working.
    Actually, they did work, but they pointed to the old site pages and not the new ones that I created in the word press console. I moved the old site files to a folder called old and tried to recreate the pages, it told me to update my htaccess file which I did and I'm still getting the 404 errors.

  2. Jeremy Clark
    Moderator
    Posted 6 years ago #

    remove the .txt extension.

  3. rubyfruitradio
    Member
    Posted 6 years ago #

    I did that. I still get a 404 for all my pages.

    My custom permalink structure is /%postname%/

    This is what my .htaccess file has in it
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

  4. Jeremy Clark
    Moderator
    Posted 6 years ago #

    try doing an update permalinks again since you've removed the .txt extension.

  5. rubyfruitradio
    Member
    Posted 6 years ago #

    I did that. I'm not sure what else to do. I RTFM and it still doesn't work.

    Is this a style sheet problem? I really don't know. It worked for a minute but was pointing the old site and not the template.

    So much for stuff being easy.

  6. ramasan
    Member
    Posted 6 years ago #

    check your file permissions on it. change it to 777. you said it was writable but open it up all the way. and obviously make absolutely sure that your file is ".htaccess" not ".htaccess(anythingelse)"

  7. Adam Brown
    Member
    Posted 6 years ago #

    Back up a little and make sure that the htaccess is even being read. Put some garbage in there. If you still get a 404, then apache is ignoring the htaccess. If you get a server error, then you at least know that the file is being used.

  8. rubyfruitradio
    Member
    Posted 6 years ago #

    Here is the error I get for one of my pages.

    Not Found
    The requested URL /artists/ was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    The permissions are set to 777. That was the first thing I did.

    My custom structure is currently /%postname%/. I have also tried some of the other ones shown in the console.

    My htaccess files says

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

  9. Adam Brown
    Member
    Posted 6 years ago #

    That came so soon after my post, I'm guessing it wasn't a reply to me? If so, then looks like your server is ignoring the htaccess file entirely. You need to change that before permalinks will work.

  10. rubyfruitradio
    Member
    Posted 6 years ago #

    I guess based on what adamrbrown is saying, apache is ignoring the file.

    It's set to 777. I RTFM. Not sure how to make apache see it.

  11. Jeremy Clark
    Moderator
    Posted 6 years ago #

    Talk to your host about enabling you to use .htaccess. Some servers come setup by default to ignore .htaccess files. I know CentOS is one of them.

  12. rubyfruitradio
    Member
    Posted 6 years ago #

    htaccess files are allowed. i've been reading all the forums, i've rtfm, not sure what else to do except forget about using wordpress. my site is a mess because all the links are busted and it's not good.

  13. rubyfruitradio
    Member
    Posted 6 years ago #

    bump

  14. Jeremy Clark
    Moderator
    Posted 6 years ago #

    They might be allowed but your host isn't letting apache process it, talk to your host about this issue. You can set your permalinks back to default and they will work until your host gets this sorted out.

Topic Closed

This topic has been closed to new replies.

About this Topic