Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

mod_rewrite problem

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


precheca123 at yahoo

Apr 15, 2012, 6:32 PM

Post #1 of 1 (75 views)
Permalink
mod_rewrite problem

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 [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.