This is a discussion on Negation in mod_rewrite regex within the Linux Web Servers forums, part of the Web Server and Related Forums category; say that I have this example: /path1/horse/any_path /path1/dog/any_path .... I need to rewrite ANY URL that does ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Quote: > > say that I have this example: > > /path1/horse/any_path > /path1/dog/any_path > ... > > I need to rewrite ANY URL that does NOT > include "horse" as second path component. putting this condition before your rewrite rule should do the trick RewriteCond %{REQUEST_URI} !^/[^/]+/horse/ |
| Thread Tools | |
| Display Modes | |
|
|