Strange Redirect of the www slug, non-www works fine, htaccess no effect!?

[ad_1]

Hi, htttps://[www.abc.com](https://www.abc.com) gets redirected to Office365, https://[abc.com](https://abc.com) (non-www) works pretty fine.

I modified the htaccess and added the following rule but had no effect!? Any idea someone?! Site runs on an AWS EC2 (malware scan already done, website had been infected, got reinstalled).

RewriteCond %{HTTP\_HOST} \^www.abc.com \[NC\]

RewriteRule \^(.\*)$ \[L,R=301\] [ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer