adding www to the url

always my domain shows like this
but i want it to be like this

my website is hosting on windows server 2008 with iis7
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.

Create a subdomain that links to the same as the main domain.
kamal_2002Author Commented:
can you please explain it more
I assume that you are hiring your domain from some provider, right?
If so, go to their site, login, and search for "subdomains" in a control panel of some sort.
Then add the subdomain and make that link to the same ip/port as
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Ah, I think i am mistaken... you can acces right? But you want to be, if so:

Options -Indexes +FollowSymLinks

place this .htacces file in your root directory:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^ [NC]
RewriteRule ^(.*)$$1 [L,R=301]

Open in new window

Amandeep Singh BhullarCommented:

You need to rewrite url from non www to www.
Please check article

This explain how to achieve this in IIS 7 using .NET

Hope this will help you
kamal_2002Author Commented:
i solved this by downloading url rewrite from
and installing it on my server and now all non www are redirect to a www

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

From novice to tech pro — start learning today.