You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "M.v.Buytene" <ma...@sigterm.nl> on 2002/03/08 17:42:03 UTC
Rewriting formmail.pl's to another url
Heys,
Im searching for a a way to rewrite ALL my formmail.pl requests to a server that actually has an
secure formmail.pl and so the customers formmail.pl would be overriden...
We use this rewrite now to rewrite userdirs to a hash :
RewriteEngine On
RewriteMap lowercase int:tolower
RewriteCond %{REQUEST_URI} !^/icons/
RewriteCond %{REQUEST_URI} !^/cgi-bin/
RewriteCond ${lowercase:%{SERVER_NAME}} ^www\.(.)(.)(.+)$
RewriteRule ^/(.*)$ /ext/%1/%1%2/%1%2%3/html/$1
RewriteCond %{REQUEST_URI} ^/cgi-bin/
RewriteCond ${lowercase:%{SERVER_NAME}} ^www\.(.)(.)(.+)$
RewriteRule ^/(.*)$ /ext/%1/%1%2/%1%2%3/$1 [T=application/x-httpd-cgi]
-------
What do i add to rewrite all formmail.pl's to lets say http://scriptbox.domain.com ?
I tried a lot of things but it seems i get stuk with it.
Thnx
E: martijn@sigterm.nl URL:http://www.sigterm.nl
E: sig@realnoise.net URL http://www.realnoise.net
-=/ That's the end of *your* loony toon, drugs bunny \=-