![]() Preserved Topic: Regular Expressions in Perl5 (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
![]() Hi guys, code: www.mysite.com/games/flash/happy.htm or it could be code: www.mysite.com/fun/sport/flash/cups.htm what I want to do is to remove the flash from the URL and still have the page load correctly. code: <rule> But this doesn't load the pages correctly, which I think is strange because I'm not requesting that it redirects (am I?). |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() Blaise: I'm not sur how this works but I would have thought you'd need to add in the "/fun/sport" bit of the URL like: code: <rule>
|
Nervous Wreck (II) Inmate From: |
![]() Hi Emps, thanks for the reply, |
Paranoid (IV) Inmate From: Madison, Indiana, USA |
![]() I'm not familiar with the urlRewriteFilter. Your subject line said Perl regex so I'll answer this as if you were writing in Perl. code: if ($url =~ m:/Flash/: ) { next }
|
Neurotic (0) Inmate Newly admitted From: |
![]() Hi, |
Nervous Wreck (II) Inmate From: |
![]() Hi there, thanks for everyones help so far, I really appreciate you taking the time for me and my problem. code: <rule> This checks that the right domain is used, and then makes the substitute, it also checks that in the case that the Flash folder ahs been entered into the address (eg. a link has been clicked) then it will remove the dupe and load normally. |