Add this small block of code into your server{} block to redirect all non-www to the www version of your website.
1 | if ($host != 'www.samhamilton.co.uk' ) { |
Add this small block of code into your server{} block to redirect all non-www to the www version of your website.
1 | if ($host != 'www.samhamilton.co.uk' ) { |