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 @

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

from httpd.conf :

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

Bad Request Error 400

But if I change it to a different target it works ie www2 or
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.
Posts: 1
Joined: Wed Aug 21, 2002 12:04 am

Return to Beginner's Corner

Who is online

Users browsing this forum: Majestic-12 [Bot] and 10 guests