www redirects to non-www with no .htaccess, why?

I been trying to get this to work correctly, I have a .htaccess that does not redirect. Yet everytime I go to the www of the website it redirects to the non-www.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Check your DNS Record!
badgettzAuthor Commented:
dns is set up correctly (I have double check many times, I'll even check again)...I have hundreds of other domains set up the same way.
Is plesk or something in the PHP redirecting it?  Does it redirect if you put a static index page up?
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

badgettzAuthor Commented:
Sorry I should've gave more details. It is plesk running on linux, there is no php redirecting it.

There are five main types of redirects available in the HTTP protocol:

    * Meta Refresh
      HTML code which tells the browser to move onto the next page after x seconds.
    * Frame Redirect
      HTML code which loads the contents of another page inside a frame, making it appear that the page is from somewhere else.
    * Header Redirect
      A Location header is returned by the server telling the browser to go to another page (generally there's no content with this page, it's just a return telling the browser to go somewhere else).
    * HTTP Redirect
      Is similar to the header redirect, but is more definitive and includes HTTP response codes which tell the search engine/browser more information about the redirect.
    * Rewrite
      Not a redirect in the same sense as above (in that it forces another request to somewhere else), a rewrite changes the URL on the server-side, redirecting the request to another file/location before it's processed by the server.
    * DNS CNAME Redirect
      Again, not quite the same as the first four, as this works below the HTTP protocol at the DNS level, but can be used in some circumstances and is a trap some people fall into, thinking that it will redirect a site.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Try with this code in .htaccess file.
<!-- Rewrite Rule -->

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

Open in new window

badgettzAuthor Commented:
Several good points. Will check everything again.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.