[wp-hackers] Putting mod_rewrite rules in httpd.conf
wp-hackers at plumlee.org
Fri Sep 1 18:41:41 GMT 2006
Robert Deaton wrote:
> On 9/1/06, Scott Plumlee <wp-hackers at plumlee.org> wrote:
>> I know there was a recent discussion about .htaccess files here. My
>> question, somewhat related, is whether it would be possible to make WP
>> honor rules in httpd.conf versus using .htaccess files? I mentioned
>> this once on the support forums, and was properly reminded that not
>> everyone has access to the main configuration file for apache. But if I
>> do have access, would this gain any performance increase, and is it even
>> Recommendation from Apache:
>> Basically they say use .htaccess if you don't have access to the config
>> Possible? Desirable as an option only, not the default (ain't broken,
>> don't fix it)?
> WP should do nothing with httpd.conf. We provide the rules, if someone
> is so inclined, they can put them in httpd.conf. They need to be put
> in a <Directory> block for the WP root, and that's about it.
Hmm, I had tried it and immediately threw an error with WP not being
able to find the permalink. I assumed WP didn't honor the rules in the
<Directory> block, but I didn't test to verify. Sorry for the noise. I
had assumed it WOULDN'T work, instead of actually testing more. Thanks
for the response.
Anyone actually do this, or does everyone stick with .htaccess? I'm
thinking the best way to do it might be an include statement so the
rules could be kept in a separate file.
More information about the wp-hackers