Re: [us...@httpd] Question for using mod_rewrite to do proxying

2009-02-23 Thread Krist van Besien
On Mon, Feb 23, 2009 at 5:20 PM, Michael Roberts wrote: > Is there a major flaw in my rules that's preventing me from doing this proxy > of all requests from http://www.example.com/blog to http://blog.example.com/ There might indeed be a flaw. The best way to find out is to enable rewrite rule l

Re: [us...@httpd] Question for using mod_rewrite to do proxying

2009-02-23 Thread Brian Mearns
On Mon, Feb 23, 2009 at 11:20 AM, Michael Roberts wrote: > Hi everyone, > > I have the following rules with mod_rewrite: > > RewriteEngine on > RewriteCond %{HTTP_HOST} ^www\.example\.com$ > RewriteRule ^blog/(.*?)$ http://blog.example.com/$1 [P] > > > RewriteCond %{HTTP_HOST} ^example.com$ > > Re

[us...@httpd] Question for using mod_rewrite to do proxying

2009-02-23 Thread Michael Roberts
Hi everyone, I have the following rules with mod_rewrite: RewriteEngine on RewriteCond %{HTTP_HOST} ^www\.example\.com$ RewriteRule ^blog/(.*?)$ http://blog.example.com/$1 [P] RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule ^(.*)?$ http://www.example.com/$1 [L,R=301] What I'm trying to achie