Hi all,
I'm new to mod_rewrite but have managed to set up a few rules which are working just fine, so I know it's working and that I have a basic grasp of what I'm doing. I've also been using perl for many years and am fairly proficient with regular expressions.
There's one rule which just isn't working, though. I've tried many variations of it and tested it inside a perl script, and I know I've got it right, but for some reason, mod_rewrite is ignoring it or not matching it. Here's the rule:
An example URL is along the lines of:
and we would want it to load:
The .plx link is from a LONG time ago when we were running a perl version of the software on an NT server. There are hundreds of people linking to thar particular .plx file, which is why I need to do the rewrite.
Any thoughts? Is there something blatantly obvious that I've just missed? This is killing me and is one of the last things to resolve before the new version goes live, so my time is running out.
TIA,
St-
I'm new to mod_rewrite but have managed to set up a few rules which are working just fine, so I know it's working and that I have a basic grasp of what I'm doing. I've also been using perl for many years and am fairly proficient with regular expressions.
There's one rule which just isn't working, though. I've tried many variations of it and tested it inside a perl script, and I know I've got it right, but for some reason, mod_rewrite is ignoring it or not matching it. Here's the rule:
Code:
RewriteRule ^foobar\.plx\?ID=([0-9]+)$ /path/to/script.php?action=foobar&ID=$1
An example URL is along the lines of:
Code:
[URL unfurl="true"]http://www.ourdomain.tld/foobar.plx?ID=123456789[/URL]
Code:
[URL unfurl="true"]http://www.ourdomain.tld/path/to/script.php?action=foobar&ID=123456789[/URL]
The .plx link is from a LONG time ago when we were running a perl version of the software on an NT server. There are hundreds of people linking to thar particular .plx file, which is why I need to do the rewrite.
Any thoughts? Is there something blatantly obvious that I've just missed? This is killing me and is one of the last things to resolve before the new version goes live, so my time is running out.
TIA,
St-