Hi there,
Are you saying the above is not working, or that it does work, but you want to rewrite it in one stanza?
To just combine the 2 rules, the following should work:
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [OR]
RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule ^/section$ http://foobar.example.com/blargh [R=301,L]
</IfModule>
In what context is this used - VirtualHost, Directory; in a .conf file, or in a .htaccess file?
Where does /section fit into your requirement?