Preserved Topic: Regular Expressions in Perl5 (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: |
posted 12-02-2003 00:17
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 |
posted 12-02-2003 02:59
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: |
posted 12-02-2003 04:44
Hi Emps, thanks for the reply, |
Paranoid (IV) Inmate From: Madison, Indiana, USA |
posted 12-03-2003 18:09
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: |
posted 12-06-2003 21:07
Hi, |
Nervous Wreck (II) Inmate From: |
posted 12-08-2003 07:24
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. |