Re: Mod_Rewrite voodoo

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

 



Reese wrote:

RewriteEngine On
This says, that I want part of the job of httpd is to do rewrites from this instant until the server is stopped. It's as if a part of httpd is just sitting there, able to do rewrites, but the switch for it is turned off to save power if it's not going to be used.
RewriteCond %{HTTP_HOST} subdomain\.domain\.ext
This says under which conditions I'm going to be wanting the rewriting to be done.
RewriteRule (.*)(0[5-6]).html$ /20$2/$1$2.html [R=301,L]
This says what rewriting to do.
RewriteEngine Off
This says never mind, I didn't mean to hit the switch, let me turn it back off and turn off the rewriting engine so no rewriting will be done as httpd does it's job.

Patrick


---------------------------------------------------------------------
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