[dancer-users] eliminating duplicate Perl Dancer site (with and without www )

Darren Duncan darren at darrenduncan.net
Fri Oct 6 06:50:24 BST 2017


On 2017-10-05 10:16 PM, Peter Yardley wrote:
> It is usual to use a DNS alias to make both addresses go to the same machine and then use a rewrite and / or a server alias to make the same machine server both sites.

That may be common, but its a bad practice that needs to go away.  Each web page 
should have exactly 1 url at which it lives (archives and backups 
notwithstanding); any other urls by which it may be reached should invoke a 
client-side redirect to that 1 url, not just serve a copy.  Doing this correctly 
is also quite easy. -- Darren Duncan



More information about the dancer-users mailing list