Access Website with www

Status
Not open for further replies.

aodat2

Verified User
Joined
May 9, 2006
Messages
38
I don't know if this question has been asked before but it's kinda strange to me as not many people actually ask me to do this.

My client was actually having his website until he change programmers. Now, his website can only function correctly if is accessed via www.xxxxx.com and not xxxxx.com only.

Is there a way to make sure that people will need to type in www in front to access the site? Can I change a DNS record or something to redirect their website from xxxxx.com to www.xxxxx.com via DirectAdmin or something?

Hope someone knows the answer to this. I've actually never done this before so it's kinda a strange question for me. I've heard of people not wanting the www in front but this is kinda the 1st time anyone wanted the www in front (as compulsory).

Thanks guys for the help in advance.
 
Create a .htaccess file in the domains public_html directory with the following

RewriteEngine on
rewritecond %{http_host} ^DOMAIN.COM [nc]
rewriterule ^(.*)$ http://www.DOMAIN.COM/$1 [r=301,nc]
 
If your server is set up properly then it will respond to both with the www and without the www.

Give us the domain to check.
 
Server is set-up perfectly.

The only problem is that my client wants only with the www and not without.

Here's the thing... his stupid programmer did some stupid thing on his webpage which will only respond to the ones with the www. If it's without, the links will not work for some stupid reason.

I'll send you a PM on that site.
 
I misread the post. Most people ask about wanting both.

No need to send PM about the domain. Read this

If you want help with something we need full, accurate information.
 
Thanks floyd for the advice in posting my client's domain all over the internet.

I doubt I'll be doing that anytime soon. Thanks but no thanks! If it was my own domain, I would have plastered it all around the globe but since it's not, I won't do so without their permission. I don't think it would be a good thing for anyone to post their clients' domain name anywhere at all without the consent of their client.

I'm getting help for my own purpose, not because I was instructed by my client to "GO GET HELP". So please do not ask me to plaster their domain all across the forum. If you truly want to help, it's in the PM that I sent you.

Again for those out there who would really like to help, please do not ask to post the domain name here. I will PM it to you but will not post it in public.

Thanks!


Ps. Thanks a lot for the help jissh. Really appreciate it a lot.
 
So let me see if I understand. Your client has a secret web site that he does not want anybody to visit.

Most people want there web site plastered all over the internet. Many people pay to have that done. You obviously did not read the link I gave you or else you would not have responded in such a way.

You will not get any help from the major posters here if you do not disclose the domain you need help with.
 
Thanks floyd but no thanks...

Again, I did this because I wanted to learn. Not because of anything else. If you think that disclosing a client website is a good idea, then how about you post the entire list of clients you have here? Perhaps that would be a good thing?

As I said, I just wanted to learn. I didn't get permission to do so from my client or anyone else at all for that matter of fact. If even this you cannot respect, then please do not waste time posting here anymore.

Your comments has been noted and considered. Thanks.
 
If you think that disclosing a client website is a good idea, then how about you post the entire list of clients you have here? Perhaps that would be a good thing?

It is a good thing. But then I would get banned for spamming the board if I were to just list the domains for no reason. But it is a good idea to list a web site everywhere possible. It helps with search engine ranking.

If even this you cannot respect, then please do not waste time posting here anymore.

Same to you. If you cannot publicly list the domain you are having a problem with then don't waste our time.

You need to stop posting and start reading all the posts here and see how many times we (unpaid volunteers BTW) have to waste time discussing this issue with people. Also while you are reading look at the number of posts people have made here. That should give you clue as to who you should be listening to.

Whether posting the domain is a good idea or not is really not the issue. The issue is that you want free answers. If you need private help then most of us can be hired to give you that private help.
 
It's not a matter of exposing the site gratuitously. It's a matter of asking us to help you and then wasting our time. Since xxxxx.com and www.xxxxx.com work how do you expect us to help you?

How to use .htaccess to fix this issue with other sites besides the one you posted has been posted.

And there are often valid reasons why only the domain with www will work (for example if the site has to be referred to by a CNAME), so we won't judge the programmer.

And this thread has served it's purpose. It's now closed.

Jeff
 
Status
Not open for further replies.
Back
Top