WordPress.org

Support

Permalinks

  • I am familiar with apache, .htaccess and have mod_rewrite installed on my server. My understanding is all that’s needed to add permalinks is through the options>permalinks>create structure? Well whenever I do this and add the code to .htaccess my links show the new path when hovered over but upon clicking I am getting a 404 error. Is there another step and does it have anything to do with trackback?

Viewing 15 replies - 1 through 15 (of 30 total)
  • With Trackback > No.

    Read this: http://codex.wordpress.org/Using_Permalinks

    Make sure .htaccess is chmodded 777.

    Bryan Villarin

    @btvillarin

    Happiness Engineer at Automattic

    FYI: 666 will work

    i recommend 777 but I guess 666 is good. Um, you got any white spaces in .htaccess?

    Moderator James Huff

    @macmanx

    Ummm, Xero, I wouldn’t do 777. Stick to 666. If you make it 777, anyone on your shared server (unless you’re hosted on a dedicated server, you’re on a shared server) will be able to write to your .htaccess file and read it (including all of your directory passwords). Do a Google search for .htaccess, you’ll see that 644 is actually recommended, but 666 is required for it to writable by WP.

    No, I read and reread all of the codex info and the other postings to this forum but it still isn’t clear to me unless I’m looking to deep. I modified .htaccess through my control panel so there is no need to chmod 666. Even so, the links when hovered show the new path but is directed to a 404.

    By the way if you are trying to repeat error on my site, I have cleared my .htaccess file.

    Moderator James Huff

    @macmanx

    Why did you modify .htaccess through the control panel? WordPress should automatically modify .htaccess for you (that is if the file is CHMOD 666).

    Yes you can through word press or you can cut and paste into the .htaccess. I have done it both ways and get the same results.

    The structure I am trying for is:

    /%year%/%monthnum%/%day%/%postname%/

    What else needs to be done and will the structure work for every link on my site?

    Moderator James Huff

    @macmanx

    What version of WordPress are you using?

    1.5

    Moderator James Huff

    @macmanx

    Hope this helps in some small way:

    http://wordpress.org/support/topic.php?id=19497#post-125740

    Okay,
    Father Luke

    O.K. so I went into the wp-includes/vars.php file and made the changes suggested in the link above and word press still cannot write to .htaccess.

    Steps to enable permalink:

    1.structure: /%year%/%monthnum%/%day%/%postname%/

    2.Click on “Update Permalink Structure” tab

    3. Get following error message: “If your .htaccess was writable we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.”

    4 So I copy and paste rules into .htaccess file

    Now once I do this, whenever I hover over the post title, it shows the new link structure but whenever the link is clicked, I get a 404 page.

    Can someone tell me why?

    Moderator James Huff

    @macmanx

    The .htaccess file may not be readable. Just try CHMOD 666. That’ll make sure that it’s readable and allow WP to write to it next time you set the permalink rules.

    I’ve done and still no luck. Thanks for everyone trying to help thus far. I’m still missing something here though.

Viewing 15 replies - 1 through 15 (of 30 total)
  • The topic ‘Permalinks’ is closed to new replies.
Skip to toolbar