WordPress.org

Ready to get started?Download WordPress

Forums

Where can I find a good .htaccess base-file? (6 posts)

  1. Thomas19007
    Member
    Posted 5 years ago #

    Hello, I need a good .htaccess file for WordPress, but find it difficult to find one, especially since I dont know much about PHP. Does anybody know a good base-file from where to start from? Many thanks in forward.

  2. Samuel B
    moderator
    Posted 5 years ago #

    ummm...not sure what you mean
    you can generate one easily enough
    admin - settings - permalinks

  3. s_ha_dum
    Member
    Posted 5 years ago #

    Thomas19007,

    .htaccess isn't a PHP file. It is a file used by the Apache web server. Maybe that is why you can't find the information you need. I'm not sure what a 'good' .htaccess would be, though, since they aren't always necessary. You might not need one at all. And, as samboll mentioned, WP will make one if it needs it.

    You might look into the Apache docs for the .htaccess file and get a feel for it.

  4. Thomas19007
    Member
    Posted 5 years ago #

    Always get an error when I want to change the permalinks that says that they cant create one automaticly and that I have to create one myself.

  5. George Appiah
    Member
    Posted 5 years ago #

    Always get an error when I want to change the permalinks that says that they cant create one automaticly and that I have to create one myself.

    Yeah, that means your .htaccess file, if it exists at all, is not writable. Look into your WordPress root directly and see if you can find a file named .htaccess. If you find it, make it writable (by changing the permissions to 666).

    If you can't find a .htaccess file, just create one yourself. Create a blank file, give it the name .htaccess, and remember to make it writable as above. On most servers, this will work.

    After this, go back to WordPress and update your Permalinks.

    ===
    [please no sigs per forum rules]

  6. Samuel B
    moderator
    Posted 5 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic