Forums

htaccess - asking nicely for a dummies' down&low explanation (5 posts)

  1. Debris
    Member
    Posted 3 years ago #

    I've been using WP on my site for a year now, and I still have no idea where in the heck the .htaccess file is supposed to be, and what its permission are supposed to be set to - so that WP can stop telling me its not writable (and that the so-called "prety" permalinks can finally work).

    Before you look at me askance, I'm the first to admit I'm not a geek so stuff like this is over my head usually, but. All these posts under the .htaccess tag and NOT ONE says in which directory the file is supposed to be located in - or all the directories which can/need to have one - or what the needed permissions are.

    Initially I have copy&pasted my existing .htaccess file (I have no clue where it had been located way back when I did this) into every folder of my WP subfolder, made the permissions something ridiculously open (775, I think) and still WP told me that my ".htaccess file was not writable". *headdesk* After that they lay around for ages until the updates started involving deleting whole WP directories and some ended up lost due to that.

    To save me from further suffering and others from going through this ordeal of trying to make heads or tails of .htaccess, could someone please, in easy to understand instructions, explain to me what needs to go where, with what content and permission?

    Honestly, I would've thought the main post in this category would've been something like: [b].htaccess - WP needs yours to be [i]here[/i] and [i]look like this[/i]![/b] with a few lines detailing where the file should be, how to make the necessary file if one doesn't exist, and the basic stuff that needs to be in it.

    Contrary to popular belief, KISS *does* work for non-geeks; it's just that it takes us ages longer to figure out what everyone else already knows and by then sharing probably seems like a shameful thing to do, as if we discovered why the sky is blue all the while knowing others new all its mechanics and didn't dare share our discoveries in fear of being mocked.

    Please be kind to the non-geeks and share the basics - copy&pasting is hard to mess up, after all, and it's not like I need to know what I'm putting where or why, just that what I do ends up being the thing that works.

    Many thanks for your patience in advance.

  2. moshu
    Member
    Posted 3 years ago #

  3. Debris
    Member
    Posted 3 years ago #

    Thanks moshu for the link. The text lost me when it started talking about the stuff that can go into a .htaccess file (the author seemed to have forgotten that a newbie who'd just made a new file would not know heads or tails of its contents, let alone recognize specific lines of code) and when it apparently told me that WP needs the .htaccess permissions to be '777' to be able to write it over - surely if all other files are 644 and WP can work them this one being an exception isn't all that logical, and saying so in the pages linked from within WP would be more expedient?

  4. whooami
    Member
    Posted 3 years ago #

    my emphasis:

    surely if all other files are 644 and WP can work them this one being an exception isn't all that logical, and saying so in the pages linked from within WP would be more expedient?

    but thats not the case under normal hosting. Any files that PHP needs to write to must be chmod 777 -- that goes for not just an .htaccess

  5. Debris
    Member
    Posted 3 years ago #

    Thanks for that bit of wisdom, whooami - see, if they'd just said that somewhere, half of my above rant would've been unnecessary. :-)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags