0

I installed a Wordpress site on an OpenShift Online [PAAS] account.

  1. If I configure Wordpress Address & Site Address (in General Settings) both to http:// example.com (without the space; I added the space here to not be prevented from posting with an http link), then requesting that URL returns "Too Many Redirects" error (I think that's a 310 error). Same for www.example.com
  2. If I configure them to http:// www.example.com (again no space), with the www., then all Wordpress pages load... they load for both example.com & www.example.com requests

Why does 1. happen, and force me to do 2.? From lots of online resources, it looks like 1. should work?

Related details:

  1. The default url for my Wordpress upon installation is app-user.rhcloud.com (that is the default value for both Wordpress Address & Site Address before I updated them to my custom domain). Before updating those, requests to that url load all pages
  2. Along with updating Wordpress Address & Site Address, I correspondingly added an alias on the OpenShift app for www.example.com -> app-user.rhcloud.com. (Nothing different if I also alias example.com -> app-user.rhclud.com)
  3. I have example.com registered with namesilo.com. They redirect requests from example.com to www.example.com
  4. I have a CNAME record mapping www.example.com to my OpenShift's app-user.rhcloud.com (which OpenShift instructs for custom domains) where my Wordpress is hosted

I would think 1. should have been facilitated sufficiently by 4. - 6. ?

Thanks!

Michael Hampton
  • 252,907
cellepo
  • 124

1 Answers1

1

Openshift uses a CNAME to route your traffic to the correct host, although some NameServer hosts may permit CNAME for the root domain, this is not RFC Compliant. since a CNAME includes all types of records, not just A (MX, TXT, and NS!)

Jacob Evans
  • 8,431