• 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.

Viewing 13 replies - 1 through 13 (of 13 total)
  • remove the .txt extension.

    Thread Starter rubyfruitradio

    (@rubyfruitradio)

    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>

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

    Thread Starter rubyfruitradio

    (@rubyfruitradio)

    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.

    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)”

    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.

    Thread Starter rubyfruitradio

    (@rubyfruitradio)

    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>

    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.

    Thread Starter rubyfruitradio

    (@rubyfruitradio)

    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.

    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.

    Thread Starter rubyfruitradio

    (@rubyfruitradio)

    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.

    Thread Starter rubyfruitradio

    (@rubyfruitradio)

    bump

    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.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘.htaccess file is there, but permalinks aren’t working’ is closed to new replies.