Openshift application url: example.rhcloud.comCustom domain: example.comI came across this link and added the redirection rule. However, I can not access example.rhcloud.com now. My custom domain is www.example.com.To avoid duplicate content problems, I tried this redirection. Here is my .htaccess file:RewriteEngine on # Uncomment the following lines to force HTTPS#RewriteCond %{HTTP:X-Forwarded-Proto} !https #RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R,L]# WordPress DefaultsRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]# Redirect Https traffic to HttpRewriteEngine on RewriteCond %{SERVER_PORT} ^443$ [OR]RewriteCond %{HTTPS} onRewriteRule  ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # Redirect non-www to wwwRewriteEngine on RewriteCond %{HTTP_HOST} !^www\. [NC]RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] # Redirect openshift rhcloud domain to custom domainRewriteEngine on RewriteCond %{HTTP_HOST} ^example.rhcloud.com$RewriteRule (.*)$ http://www.example.com/$1 [R=301,L]Why is example.com not redirecting to ww.example.com? How do I fix this?Also, I see that since I have https to http redirection and non www to www redirection, my blog has been loading slow. How can I reduce it to lesser number of rules?Edit:In chrome:In Firefox:The page isn't redirecting properly, Firefox has detected that the server is redirecting the request for this address in a way that will never complete.     This problem can sometimes be caused by disabling or refusing to accept cookies.
redirecting openshift rhcloud domain to custom domain for SEO purposes
htaccess;redirects;mod rewrite