Site icon Hip-Hop Website Design and Development

Learn how to stop redirection from non-www to www or vice versa?

In WordPress, it appears that evidently if I outline:

outline('WP_SITEURL', 'https://www.instance.com');
outline('WP_HOME', 'https://www.instance.com');

Then all non-www model similar to https://instance.com will probably be redirected to www model and the response header will probably be:

X-Redirect-By: WordPress

That is OK for normal instances. Nonetheless, now I wish to stop such a redirection, as a result of I’m utilizing Amazon Cloutfront and the redirection ought to be stopped, in any other case, there will probably be error. See https://stackoverflow.com/questions/20503322/cloudfront-distribution-with-custom-origin-redirects-request/22571467#22571467

So methods to stop the redirection?