500 server error gets returned

Using mod_rewrite to handle various content issues

Postby Guest » Thu Mar 28, 2002 9:21 am

I am trying to do a mini content management system where everything goes through a single file. So everything gets rewritten to that file name and the original URL gets parsed. So goes the theory. It got the idea from the cgi version of zope. Well, I have the usual host problem, dummies at the wheel. I checked my phpinfo() results, and they do have mod-rewrit installed, but it doesn't work. The error logs say bad syntax or not installed, and the resulting web page says error 500. The error logs show the server choking on the line:
'RewriteEngine on'.

Anyone got any ideas?
Guest
 

Postby gearond » Thu Mar 28, 2002 9:26 am

My address is gearond@I_HATE_SPAMMERS_cvc.net
gearond
 
Posts: 1
Joined: Wed Mar 27, 2002 4:00 pm

Postby Brett » Thu Mar 28, 2002 11:53 am

Since you want everything to go through a single file, you could probably get by just using
ErrorDocument 404 /path/to/your/document

You'll want to include some code to adjust the headers, though, so that the 404 error isn't returned to the user's browser.

If that doesn't work, you could always find a new hosting company. I hear YoHost is very good. :smile:

EDIT: By the way, "mod_rewrit" is actually different from "mod_rewrite". I'm not too sure of the details, though.

<font size=-1>[ This Message was edited by: Brett on 2002-03-28 14:58 ]</font>
Brett
 
Posts: 82
Joined: Tue Jul 10, 2001 4:00 pm
Location: yohost.com


Return to Content

Who is online

Users browsing this forum: No registered users and 9 guests

cron