Re: [EMAIL PROTECTED] Help with mod_rewrite rules

2006-08-10 Thread Bill Moseley
On Thu, Aug 10, 2006 at 08:38:32PM -0400, Joshua Slive wrote: > On 8/10/06, Bill Moseley <[EMAIL PROTECTED]> wrote: > >I suppose the simple way is the following: > > > >RewriteCond %{REQUEST_URI} \.(jpe?g|gif|png|txt|doc|ppt|pdf)$ > >RewriteCond %{REQUEST_URI} !/css/ > >Rewr

Re: [EMAIL PROTECTED] Help with mod_rewrite rules

2006-08-10 Thread Joshua Slive
On 8/10/06, Joshua Slive <[EMAIL PROTECTED]> wrote: RewriteConds apply only to the RewriteRule immediately following them. There are various ways to avoid having to write the same conds multiple times, for example: RewriteCond %{REQUEST_URI} !\.(jpe?g|gif|png|txt|doc|ppt|pdf)$ Should obviousl

Re: [EMAIL PROTECTED] Help with mod_rewrite rules

2006-08-10 Thread Joshua Slive
On 8/10/06, Bill Moseley <[EMAIL PROTECTED]> wrote: I suppose the simple way is the following: RewriteCond %{REQUEST_URI} \.(jpe?g|gif|png|txt|doc|ppt|pdf)$ RewriteCond %{REQUEST_URI} !/css/ RewriteCond %{REQUEST_URI} ^/Rural [nocase] RewriteRule

[EMAIL PROTECTED] Help with mod_rewrite rules

2006-08-10 Thread Bill Moseley
I'm trying to use a skip rule after a RewriteCond, but then the conditions are not checked. I've got these rewrite rules: RewriteCond %{REQUEST_URI} \.(jpe?g|gif|png|txt|doc|ppt|pdf)$ RewriteCond %{REQUEST_URI} !/css/ RewriteRule ^/(.+)$ /domains/default/$1 [la