æ¬ç¨¿ã§ã¯ã Apache httpd ã®ã¢ã¸ã¥ã¼ã«ãmod_rewriteãã®æ©è½ã§ãã RewriteCond ãã£ã¬ã¯ãã£ãã«ã¤ãã¦è§£èª¬ãã¾ãã RewriteCond ã¨ã¯ï¼ RewriteCond ãã£ã¬ã¯ãã£ãã¯ãRewriteRule ãå®è¡ããããã®æ¡ä»¶ãå®ç¾©ããããã®è¨è¿°ã§ãã RewriteCond ã«è¨è¿°ããæ¡ä»¶ãæºããããæã®ã¿ RewriteRule ã«è¨è¿°ããURLã®æ¸ãæãã¨è»¢éãå®è¡ãããããã«ãªãã¾ãã RewriteCond ã¯ãRewriteRule è¨è¿°ã®ç´åã«è¤æ°è¨è¿°ãããã¨ãã§ãã¾ãã RewriteCond ãè¤æ°è¨è¿°ããå ´åã«ã¯ãè¤æ°ã®æ¡ä»¶ãå ¨ã¦ä¸è´ããå ´åã« RewriteRule ãé©ç¨ããã®ã(AND)ãè¤æ°ã®æ¡ä»¶ã®ãããããä¸è´ããå ´åã«é©ç¨ããã®ã(OR) ãæå®ãããã¨ãã§ãã¾ãã RewriteCond ãã£ã¬ã¯ãã£ãã®æ¸å¼ Re
ãªã©ã¤ãï¼æ¸ãæãï¼ã®è¨è¿°ä¾ ä¸è¬çãªè¨è¿°ä¾ #ãªã©ã¤ãã¨ã³ã¸ã³ã®éå§ RewriteEngine on #æ¸ãæãã®ãã¼ã¹ã¨ãªããã¹ RewriteBase / #ãã¡ã¤ã³ãwwwããã«çµ±ä¸ RewriteCond %{HTTP_HOST} ^(example\.com)(:80)? [NC] RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L] #ãã£ã¬ã¯ããªã®ç§»è»¢ RewriteRule ^old_dir(.*)$ /new_dir$1 [R=301,L] #ãã¡ã¤ã«ã®ç§»è»¢ RewriteRule ^old_dir/index\.html$ /new_dir/index.html [R=301,L] #ã¯ãã¼ã©ã®ã¢ã¯ã»ã¹ç¦æ¢ RewriteCond %{HTTP_USER_AGENT} Badbot-1 [NC, OR] Re
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}