I want redirect my openshift subdomain (*.rhcloud.com) to my custom domain when my visitors access subdomain. I tried using .htaccess for redirect but I got an Redirect error on mozilla firefox. This is my .htaccess code:
RewriteEngine On
RewriteRule ^(.*)$ http://customdomain.com/ [R=301]
Try this:
You are missing where it looks for the old domain to redirect, so you are getting a redirect loop.