[wp-hackers] Prevent Writing to .htaccess
chip at chipbennett.net
Thu Aug 5 14:36:03 UTC 2010
On Thu, Aug 5, 2010 at 9:31 AM, Ryan Bilesky <rbilesky at gmail.com> wrote:
> Forgive me if I am being nieve since I am still al little new to wordpress
> but why can't WP have a way to set custom .htaccess rules and when WP
> flushes .htaccess and readds WP rules it could readd your custom rules too.
> Or make it so that you can block off a section of .htaccess using specific
> comments to tell WP don't modify this section of .htaccess.
Isn't that exactly what WordPress does? It only ever touches whatever is
between the "# BEGIN WordPress" and "# END WordPress" comment tags.
I've got quite a bit of other content in my .htaccess file, that never gets
touched by WordPress, whether or not I ever update my Permalink settings.
More information about the wp-hackers