Ready to get started?Download WordPress


Using wp without .htaccess for apache performance. Possible? (7 posts)

  1. flashpacker
    Posted 3 years ago #

    The apache documentation strongly suggests not using .htaccess and putting directives in the main apache config file instead for performance reasons.

    I read some posts that suggested that a directive in .htaccess isn't needed for pretty permanlinks anymore. Is this true?

    Has anyone used wordpress without .htaccess files?

  2. MickeyRoush
    Posted 3 years ago #

    If you're on a shared server you most likely will not be able to edit the Apache config file.

  3. flashpacker
    Posted 3 years ago #

    I'm on a VPS. I can edit it.

  4. MickeyRoush
    Posted 3 years ago #

    Then editing the http.conf is the better route.

    Note that .htaccess follows the same syntax of httpd.conf but, unlike httpd.conf where changes take effect only on a server restart, .htaccess directives are examined each time the particular directory that .htaccess
    is contained within is accessed.

    You might want to leave the AllowOverride All though. Just in case you want to do something specific to a directory, like password protect the wp-admin directory.

    I only have experience using .htaccess for the pretty permalinks, so I don't know how it will perform with what you're wanting to do.

  5. flashpacker
    Posted 3 years ago #

    The point is to be able to set AllowOverride to None - this is what creates the performance boost! So apache doesn't need to go looking for .htaccess files.

  6. MickeyRoush
    Posted 3 years ago #

    Oh I see.

    Sorry, I don't have much experience with http.conf to offer you viable answer. But I believe almost everything you can do with .htaccess you should be able to do with http.conf.

  7. Any performance gain from not using .htaccess will be negligible. You're much better off tuning MySQL with https://github.com/rackerhacker/MySQLTuner-perl, working with httpd.conf to configure the number of http processes, allocating more memory to WordPress, reducing plugins, etc. Search the forums or http://wordpress.stackexchange.com/ for info on WP performance.

Topic Closed

This topic has been closed to new replies.

About this Topic