httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From T├ęssio Fechine <precheca...@yahoo.com.br>
Subject [users@httpd] mod_rewrite problem
Date Mon, 16 Apr 2012 01:32:44 GMT
Hello,
I am following some HOWTOs about mod_rewrite, but they are not working for me.

I want to translate 'example.net/mocha' to '/coffee.cgi?type=mocha'.
This is what I have:

##.htaccess##
# RewriteEngine on
# Options +FollowSymlinks
# RewriteBase /
# RewriteRule ^(.*)$ coffee.cgi?type=$1

##coffee.cgi##
# #!/usr/bin/perl -w
# use CGI qw(:standard);
#
# $type = param('type');
# print header(), start_html(), p('You ordered a', $type), end_html();

But apache2 erroneously outputs 'You ordered a coffee.cgi', instead of 'You ordered a mocha'.

What I am doing wrong?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message