on redirect my regex only matches stuff in my query string, not the URL

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://...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-02-2005
lkrubner@geocities.com
 
Posts: n/a
Default on redirect my regex only matches stuff in my query string, not the URL

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 02:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0