Google Answers Logo
View Question
 
Q: mod_rewrite ( No Answer,   2 Comments )
Question  
Subject: mod_rewrite
Category: Computers > Internet
Asked by: eqs-ga
List Price: $15.00
Posted: 04 Nov 2002 12:05 PST
Expires: 04 Nov 2002 13:36 PST
Question ID: 98489
I am trying to use mod_rewrite (entered into the httpd.conf file on a
Linux Slackware box running Apache) to make a dynamic database-driven
website search engine friendly but instead of displaying the expected
search results, when I type in the "shortcut" URI I get the actual
text of the CGI script.  What do I need to do resolve this issue and
get the search engine results to display instead?  I have root access
to make any modifications necessary at a server level.
Answer  
There is no answer at this time.

Comments  
Subject: Re: mod_rewrite
From: bigsky123-ga on 04 Nov 2002 12:56 PST
 
you are either:
- missing the ExecCGI Option; there should be:
Options ExecCGI (other options may be included there as well)
within your VirtualHost and/or your server configuration

- and/or -

- missing an AddHandler definiton
e.g. 
# To use CGI scripts:
AddHandler cgi-script .cgi

you would have to change that if your script ends with an other extension e.g. .pl
==> AddHandler cgi-script .pl
Subject: Re: mod_rewrite
From: eqs-ga on 04 Nov 2002 13:35 PST
 
Thank you!

I added .pl after .cgi on the AddHandler definition (my script worked
without it as long as I didn't try to use mod_rewrite so I didn't know
I needed it) and it worked like a charm!

:) :) :)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy