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.
LVL 1
badgettzAsked:
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.

kentcomputersCommented:
Check your DNS Record!
0
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.
0
kentcomputersCommented:
Is plesk or something in the PHP redirecting it?  Does it redirect if you put a static index page up?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

badgettzAuthor Commented:
Sorry I should've gave more details. It is plesk running on linux, there is no php redirecting it.
0
kentcomputersCommented:
http://www.jabwebsolutions.co.uk/support/knowledgebase/view/136/how-do-redirects-work-with-websites.html

-------------Exerpt----------------
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.
0

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
tpraveenrajCommented:
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

0
badgettzAuthor Commented:
Several good points. Will check everything again.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.