This is a discussion on on redirect my regex only matches stuff in my query string, not the URL within the Linux Web Servers forums, part of the Web Server and Related Forums category; Suppose I have this url: http://www.mycompany.com/lawrenceTests/regex/dog/1/ This matches and redirects: RewriteRule ^(.*)dog(.*)$ http://...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Suppose I have this url:
http://www.mycompany.com/lawrenceTests/regex/dog/1/ This matches and redirects: RewriteRule ^(.*)dog(.*)$ http://www.mycompany.com/wedding_bands/ this does not: RewriteRule ^(.*)lawrenceTests(.*)$ http://www.mycompany.com/wedding_bands/ Why not? I'm trying to get this to work in mod_rewrite |