Re: [users@httpd] question about mod_rewrite

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

 



On Tue, Apr 12, 2005 at 12:04:21PM -0400, Joshua Slive wrote:
> > >
> > > RewriteRule     ^/apps.*$            /maintenance.html [L]
> > 
> > Shouldn't that read:
> > 
> > RewriteRule ^/apps/.*  /maintenance.html [L]
> > 
> > ...or even:
> > 
> > RewriteRule ^/apps/  /maintenance.html [L]
> 
> I assumed he didn't want to insist on the trailing slash.  Including
> it in the RewriteRule will mean that apache will need to issue a
> redirect to put it on before the rewriterule will take effect.

Ah, k. I tend to be leary of /foo.*, since I don't want to accidently
match /foobar or /apps2, or what have you. =)

--n

-- 
"Any system shall not harm your content or, through 
inaction, allow your content to come to harm."
                            - Jeff Raskin

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