301重定向
You may want people who visit your website with url like "example.com" to visit url like "www.example.com" instead. For this, it's appropriate for you to make a 301 permanent redirect. Example code is shown as below (focus on Line 11 ~ Line 15).