Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite question

trouble with proxy

         

bsterz

1:11 am on Mar 3, 2005 (gmt 0)

10+ Year Member



Greetings.

When I setup an entry like this:

RewriteRule ^(.*)$ [example.com...] [P]

This works great for directories (that exist), but when I use a query string (http://www.sitea.com/?test=22), it fails like this:

The requested URL /?test=22 was not found on this server.
Apache/1.3.27 Server at www.example.com Port 80

I have tried:
RewriteRule ^(.*)$ [example.com...] [P][PSA]

RewriteRule ^(.*)$ [example.com...] [P]

RewriteCond %{QUERY_STRING} (.*)
RewriteRule ^(.*)$ [example.com...] [P]

What am i missing?

Thanks

Bill

bsterz

11:16 am on Mar 3, 2005 (gmt 0)

10+ Year Member



I might have found the answer to my problem..

Looks like an apache bug maybe?

[issues.apache.org...]

Anyone know a work-around for this?

Thanks

zyron

11:22 am on Mar 3, 2005 (gmt 0)

10+ Year Member



you have index.php there?

bsterz

11:31 am on Mar 3, 2005 (gmt 0)

10+ Year Member



I also found this - I'm going to try it tonight

[webmasterworld.com...]

Bill

bsterz

11:32 am on Mar 3, 2005 (gmt 0)

10+ Year Member



zyron - thanks for the reply. Yes, I have a file that contains phpinfo() as index.php.