This is a discussion on mod_rewrite and cgi within the Linux Web Servers forums, part of the Web Server and Related Forums category; Is there a way to use mod_rewrite to - test incoming uri for something like /cgi-bin/foo/bar.cgi - and ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is there a way to use mod_rewrite to
- test incoming uri for something like /cgi-bin/foo/bar.cgi - and then remap it to a file like so foo/bar.php I have tried this: RewriteRule ^/cgi-bin/foo/bar\.cgi$ foo/bar.php [R,L,QSA] but my rewrite log show this: - (2) init rewrite engine with requested uri /cgi-bin/foo/bar.cgi - (3) applying pattern '.*' to uri '/cgi-bin/foo/bar.cgi' - (4) RewriteCond: input='GET' pattern='^TRACE' => not-matched - (1) pass through /cgi-bin/foo/bar.cgi Any thoughts? (I posted this originally in alt.apache.configuration--sorry for any crossover.) |
| Thread Tools | |
| Display Modes | |
|
|