http to www

In DA panel, i don't think, but you can make a .htaccess in your publi_html (url rewriting on) :

Code:
RewriteEngine On 
#All request goes on [url]www.yourwebsite.com[/url] and not website.com
RewriteCond %{HTTP_HOST} ^domaine.com 
RewriteRule (.*) [url]http://www.domaine.com/[/url]$1 [QSA,L,R=301]
 
Hey,

DNS entry would handle that as well...

I believe DA already puts the domain as a ServerAlias... and I think it does the DNS entry on the DA box as well.

Obviously, if you are using external DNS you'd have to make that addition.

David
 
Hey Jeff,

OK, maybe I'm missing something...

I didn't think a rewrite is/was necessary for the original posters question...

We've got plenty of sites the can go the just their domain name as they are in DNS and as an alias for the server...

domain.com and www.domain.com both point to the same server in DNS and both are aliased in apache...

Did that make sense?

Thanks, David
 
skruf said:
Hey Jeff,

OK, maybe I'm missing something...

I didn't think a rewrite is/was necessary for the original posters question...

We've got plenty of sites the can go the just their domain name as they are in DNS and as an alias for the server...

domain.com and www.domain.com both point to the same server in DNS and both are aliased in apache...

Did that make sense?

Thanks, David

Yeah www.domain.com and domain.com point to the same server (aliases), but the user's question was, I think : Ho to redirect user from domain.com to www.domain.com because this user say me Thank You :) lol ^_^

It's sometime important for some statistics script to have only 1 URL for the index of the website
 
You can do it with either a php program or an .htaccess file.

My guess is you're not getting any responses because the question has nothing to do with DA.

Jeff
 
Back
Top