• Resolved eneles

    (@eneles)


    Hi all,

    I’ve been setting up a blog and recently went to change the permalink settings to the month and name value, and got the following error message:

    If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file.

    I had a look into it an found I didn’t actually have a .htaccess file to write to at all. I then created a .htaccess file and inserted just the mod_rewrite rules. I know virtually nothing about .htaccess files.
    My question is…:

    Should I include other information in my .htaccess file? I really don’t know what else should be in the file if anything. Are there things you should include simply for security? Whenever I search for information about .htaccess files I come up with a list of things they can do, but I don’t know if anything is actually neccessary?

    If someone can point me in the right direction I’d really appreciate it.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Sounds like you did the right thing (good for you, figuring that out all by yourself 🙂 ). For future reference, if you don’t have an .htaccess file on the server, you can upload a blank file named .htaccess and set the permissions to 766. Do your permalink setting and WordPress will auto-write the stuff for you in the file. Once that’s done BE SURE you change the permissions back to 644 for security purposes.

    As for “necessary” stuff – no. .htaccess is a nice little tool to use if you *want* to do things, but it’s not required. You can use .htaccess for all kinds of things, from rewriting permalinks, to preventing your images from getting hotlinked to banning people from doing referer spam (among other things). It’s all neat stuff, but not required stuff. You usually end up figuring out what it is you want to do in your .htaccess file when you get to a point where you want to do something specific – then find out you *can* with .htaccess 🙂

    If you want to do security stuff – especially for your WordPress blog – you might want to read this: Hardening WordPress

    Thread Starter eneles

    (@eneles)

    Thanks heaps!

    Appreciate the response. 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘htaccess file – permalinks’ is closed to new replies.