problems with mod_rewrite under Apache

by "Rajnish Bhaskar" <r.bhaskar(at)compserv.gla.ac.uk>

 Date:  Wed, 21 Nov 2001 09:44:10 -0000
 To:  hwg-servers(at)hwg.org
  todo: View Thread, Original
Hi folks,
I've been trying to do some work with mod_rewrite, since I've got 
some nasty dynamic URLs that I'm trying to rewrite so that they'll be 
picked up by search engines, but I'm having problems.

I have an apache 1.3.14 server running on Win95 as my development 
server and I've set it up to accept .htaccess files.  I've got a 
directory /discussions (from the base of the webserver) in which I've 
got the following .htaccess file:

#---------------- begin ------------
RewriteEngine on

RewriteBase /discussions

RewriteRule /discussions/([a-z]+)/([a-z]+\.html)
/discussions/discuss.php?subsection=$1&file=/discussions/$2
#--------------- end ---------------

(note: The current URL is 
/discussions/discuss.php?subsection=something&file=/discussions/someth
ing.html and I want it to parse URLs of the form 
/discussions/subsection/something.html)

I'm just getting a 500 error, without any help from the logs.

Can anyone help?
Raj.
-- 
Rajnish Bhaskar
r.bhaskar(at)compserv.gla.ac.uk, http://lordofthemoon.com
IT Education Unit, University of Glasgow
http://www.iteu.gla.ac.uk/
--
Be seeing you

HWG: hwg-servers mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.