4

I recently moved my NodeJS app to a new Openshift server.

Visiting www.lsmsaSGO.com works as expected. Visiting lsmsaSGO.com seems to redirect explicitly to www.lsmsaSGO.com in the URL bar. I do not want this behavior.

I have another site set up almost identically which will use non WWW domains if the user types elsealabs.com, but will use WWW domains if the user types www.elsealabs.com. This is the desired behavior for lsmsaSGO.com.

Do I need the page rule in the final image? Can anyone help or offer some advice on how to obtain this behavior?

Website Information on Openshift Website Information on Cloudflare Website Information on Cloudflare

2 Answers2

7

I don't know anything about Openshift, but that last image certainly looks like it's doing a permanent redirect (a 301) from lsmsasgo.com/<anything> to www.lsmsasgo.com/<anything>. What happens if you delete that? Or change the www to xyz? The xyz page won't load, but you should see the redirect change from lsmsasgo.com -> www.lsmsasgo.com to lsmsasgo.com -> xyy.lsmassgo.com, which will tell you it is that setting.

blm
  • 620
-1

Explicitly redirecting to "www.yoursite.com" is usually done with a .htaccess file in the root of you site.

Check if there is anything in there that looks something like this;

RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]

Change it to the following:

#RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
#RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]
Fred
  • 1