PDA

View Full Version : send all traffic to www


kelvin brown
10-20-2004, 01:29 PM
I want to combine all traffic to :

example.com

and

www.example.com



Either entry should point in the browser to www.example.com. I would like to do this at server level, rather than just adding a redirect in htaccess.

I have read a couple of ways to do this, but what is the best way to accomplish it on DSM servers?

kelvin

Staff
10-22-2004, 01:14 PM
Not sure I completely understand what your asking. As far as logging and bandwidth calculations all traffic is already combined. Maybe if you provided your .htaccess file I could come up with a serverwide equivilent?

kelvin brown
10-22-2004, 02:53 PM
Hi Adam,

This is not about bandwidth. THis is for link popularity purposes. Currently www.example.com and example.com both go to the same place.

However, when you check link popularity, they have sometimes very different values.

Some people link to one or the other. Popularity would be much higher if the server made all incoming links look like, (resolve to) www.example.com

kelvin

Staff
10-22-2004, 03:11 PM
How can you control what URL other people link to?

I would think it would be up to what the people placed in their HTML? Unless Link-bots follow redirects?

kelvin brown
10-22-2004, 04:36 PM
can't control how they link, just want to control what happens at the server end.

Here is an article explaining it using httpd.conf

<VirtualHost 192.xxx.xxx.xxx>
ServerName www.domain.com
DocumentRoot /home/domain/www
</VirtualHost>

<VirtualHost 192.xxx.xxx.xxx>
ServerName domain.com
Redirect 301 / http://www.domain.com/
</VirtualHost>


http://jimworld.com/gazette/issue-214/

kelvin

Staff
10-22-2004, 04:57 PM
I'll throw it on my Feature Request list. There is no reason can't make dsm have the option to add "www." to each server name.

I'll see if I can get it in for the next version, however I can't promise anything.

kelvin brown
10-22-2004, 06:40 PM
Thanks Adam