I need to redirect any .py file plus query string
e.g. test.py?var=1
located anywhere within the htdocs folder and its subfolders to a different port on the same machine. Another server on this port is meant to handle all .py requests. I've tried the following and variants thereof to no effect, can anyone help and tell me where I'm going wrong?
RewriteRule ^/(.*\.(py).*)$
and
RewriteRule ^(.*\.(py).*)$
TIA
e.g. test.py?var=1
located anywhere within the htdocs folder and its subfolders to a different port on the same machine. Another server on this port is meant to handle all .py requests. I've tried the following and variants thereof to no effect, can anyone help and tell me where I'm going wrong?
RewriteRule ^/(.*\.(py).*)$
and
RewriteRule ^(.*\.(py).*)$
TIA