Re: [us...@httpd] mod_rewrite help

2009-09-07 Thread Lars
Wow, that was a fast answer :) I tried it, and got "RewriteCond: bad flag delimiters" and 500 error. Saw that there was an extra space in the "RewriteCond %{REQUEST_URI} ! \.(js|jpg)$" rule, so changed it to "RewriteCond %{REQUEST_URI} !\.(js|jpg)$". Got rid of the 500 error, but now the rule didn

Re: [us...@httpd] mod_rewrite help

2009-09-07 Thread Eric Covener
On Mon, Sep 7, 2009 at 8:08 AM, Lars wrote: > Hello list! > > I know basic mod_rewrite, not much, but enough to create basic rules. > > Now I need to create a rule that can handle this situation: >  * Work under the root (/) folder >  * Don't do anything under the /secure/ folder >  * Don't do anyt

[us...@httpd] mod_rewrite help

2009-09-07 Thread Lars
Hello list! I know basic mod_rewrite, not much, but enough to create basic rules. Now I need to create a rule that can handle this situation: * Work under the root (/) folder * Don't do anything under the /secure/ folder * Don't do anything with *.js, *.jpg * Rewrite everything else to index.

Re: [us...@httpd] mod_rewrite help

2009-03-14 Thread André Warnier
Andrea Visinoni wrote: Eric Covener ha scritto: On Thu, Mar 12, 2009 at 6:02 PM, Andrea Visinoni wrote: Hi there, i need to implement url rewrite on a website and i need to obtain something like that: http://site.com/a/ -> index.php?1=a http://site.com/a/b/ -> index.php?1=a&2=b http://site.

Re: [us...@httpd] mod_rewrite help

2009-03-14 Thread Andrea Visinoni
Eric Covener ha scritto: On Thu, Mar 12, 2009 at 6:02 PM, Andrea Visinoni wrote: Hi there, i need to implement url rewrite on a website and i need to obtain something like that: http://site.com/a/ -> index.php?1=a http://site.com/a/b/ -> index.php?1=a&2=b http://site.com/a/b/c/ -> index.php?1=

Re: [us...@httpd] mod_rewrite help

2009-03-13 Thread André Warnier
Andrea Visinoni wrote: Hi there, i need to implement url rewrite on a website and i need to obtain something like that: http://site.com/a/ -> index.php?1=a http://site.com/a/b/ -> index.php?1=a&2=b http://site.com/a/b/c/ -> index.php?1=a&2=b&3=c is this possible? by now i was able to do that

Re: [us...@httpd] mod_rewrite help

2009-03-13 Thread Eric Covener
On Thu, Mar 12, 2009 at 6:02 PM, Andrea Visinoni wrote: > Hi there, > i need to implement url rewrite on a website and i need to obtain something > like that: > > http://site.com/a/ -> index.php?1=a > http://site.com/a/b/ -> index.php?1=a&2=b > http://site.com/a/b/c/ -> index.php?1=a&2=b&3=c Ther

[us...@httpd] mod_rewrite help

2009-03-12 Thread Andrea Visinoni
Hi there, i need to implement url rewrite on a website and i need to obtain something like that: http://site.com/a/ -> index.php?1=a http://site.com/a/b/ -> index.php?1=a&2=b http://site.com/a/b/c/ -> index.php?1=a&2=b&3=c is this possible? by now i was able to do that: RewriteEngine on Rewr