Bad request! Error 400

New to mod_rewrite? This is a good place to start.

Bad request! Error 400

Postby s4mu » Wed Aug 21, 2002 5:48 am

Trying mod_rewrite on a foxserv installation on my windows pc and although I'm new to mod_rewrite on a pc I think this must be a bug.

Eg. 2 pretend virtual hosts www2 and www8 both @ 127.0.0.1

request in browser : http://www8/site/bananasplit

from httpd.conf :

RewriteEngine on
RewriteRule ^/site(.*) /director.php [L]

Result:
Bad Request Error 400


But if I change it to a different target it works ie www2 or www.google.com
or whatever.

RewriteEngine on
RewriteRule ^/site/(.*) http://www2/director.php [L]

Rewrite logs, error logs etc don't tell me anything I didn't already know.

Just trying to get to the bottom of this with a 'simple' working example.
s4mu
 
Posts: 1
Joined: Wed Aug 21, 2002 12:04 am

Return to Beginner's Corner

Who is online

Users browsing this forum: No registered users and 12 guests

cron