ããã«ã¡ã¯ãCTOã®é¦¬å ´ã§ãã ãã®ã¨ã³ããªã¯nginxã¢ããã³ãã«ã¬ã³ãã¼ã®4æ¥ç®ã§ãã ã¿ããªå¤§å¥½ã mod_rewrite ãnginxã«ç§»æ¤ããã³ããããã£ã¨ç´¹ä»ãã¾ãã çµè« ã¾ããserver ã¨ã location ã使ããã¨ãã try_files ãªã©ä»ã®æ¹æ³ããªããèãã ã©ããã¦ãã©ããã¦ããã¡ãªã map 㨠if ã使ã 以ä¸ï¼ ã³ãã¯ãã¨ã«ãã if ã使ããªãããã¨ã§ãã æç¶ãçãªæ¸ãæ¹ãã宣è¨çãªæ¸ãæ¹ã«é ãåãæ¿ããã¨ãã¾ã馴æããã¨æãã¾ãã ä¾: wwwããã§ã¢ã¯ã»ã¹ããããwwwãªãã«è»¢éãã server { listen 80; listen 443; server_name www.example.com; return 301 $scheme://example.com$request_uri; } rewrite è¦ãã¾ããã ä¾: ãµã
{{#tags}}- {{label}}
{{/tags}}