I have a .htaccess file which right now looks like this:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*).org$ [NC]
RewriteRule ^(.*)$ http://foo.com/$2 [R=301,L]
Is it possible to put a variable in for the “foo.com” bit to just redirect to the same domain that was input, but with .com instead of .org?
Reading the documentation usually helps:
RewriteRuledirective