mod_rewrite problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux