[wp-hackers] Prevent Writing to .htaccess
otto at ottodestruct.com
Thu Aug 5 16:36:02 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.
Oh, you can certainly do that. WP Super-Cache does it.
The mod_rewrite_rules filter is the most obvious choice to do this.
You can modify the rules it puts into the htaccess file all you like
More information about the wp-hackers