Re: RewriteEngine directive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 5, 2008 at 3:40 PM, Malka Cymbalista
<Malki.Cymbalista@xxxxxxxxxxxxxx> wrote:
> Thanks for your reply.  I actually read the documentation which is where I learned that I can put Rewrite directives in the directory section.  My question is if there is any way to get around putting
> RewriteEngine on
> in each directory section.  I have   RewriteEngine on   in the config file outside  the directory section but this did not seem to be enough and I had to put it into the specific directory section.

You probably put RewriteEngine on outside your virtual host, which is
indeed not inherited by this virtual host. You need to put it inside
the virtualhost. If you want to swithc it on in a directory section
you don't need to put it in each directory section. Directory sections
are merged, so you could conceivably put it in the root Directory
section. (I don't think it is usually a good idea to put rewritrules
in a directory context...)

Krist

-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux