{"id":27603,"date":"2026-01-04T12:38:11","date_gmt":"2026-01-04T03:38:11","guid":{"rendered":"https:\/\/motoki-design.co.jp\/wordpress\/?p=27603"},"modified":"2026-01-04T12:38:12","modified_gmt":"2026-01-04T03:38:12","slug":"htaccess-redirect","status":"publish","type":"post","link":"https:\/\/motoki-design.co.jp\/wordpress\/htaccess-redirect\/","title":{"rendered":"WordPress\u2502.htaccess\u3092\u4f7f\u3063\u305f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u6cd5"},"content":{"rendered":"\n<p>WordPress\u30b5\u30a4\u30c8\u306e\u79fb\u8ee2\u3084\u69cb\u6210\u5909\u66f4\u306b\u4f34\u3044\u3001<strong>\u300c\u7279\u5b9a\u306eURL\u3060\u3051\u3092\u5225\u30c9\u30e1\u30a4\u30f3\u30fb\u5225\u30d1\u30b9\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u305f\u3044\u300d<\/strong>\u3068\u3044\u3046\u30b1\u30fc\u30b9\u306f\u3088\u304f\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306f\u3001<strong><code>.htaccess<\/code> \u3092\u4f7f\u3063\u305f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u57fa\u672c\u3068\u5b9f\u8df5\u7684\u306a\u66f8\u304d\u65b9<\/strong>\u3092\u3001WordPress\u7279\u6709\u306e\u6ce8\u610f\u70b9\u3082\u542b\u3081\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-border_left\"><strong>\u3053\u306e\u8a18\u4e8b\u3067\u308f\u304b\u308b\u3053\u3068<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>.htaccess<\/code> \u3092\u4f7f\u3063\u305f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u57fa\u672c<\/li>\n\n\n\n<li>WordPress\u74b0\u5883\u3067\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u66f8\u304f\u3068\u304d\u306e\u6ce8\u610f\u70b9<\/li>\n\n\n\n<li>\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5358\u4f4d\u3067\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u65b9\u6cd5<\/li>\n\n\n\n<li>\u89aa\uff08\u30eb\u30fc\u30c8\uff09<code>.htaccess<\/code> \u306b\u307e\u3068\u3081\u3066\u66f8\u304f\u65b9\u6cd5<\/li>\n\n\n\n<li>SEO\u3092\u8003\u616e\u3057\u305f 301 \u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u4f7f\u3044\u3069\u3053\u308d<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u524d\u63d0\uff1aWordPress\u3068.htaccess\u306e\u95a2\u4fc2<\/h2>\n\n\n\n<p>WordPress\u3067\u306f\u3001\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3084URL\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u306e\u305f\u3081\u306b<br><code>.htaccess<\/code> \u306b <strong>mod_rewrite<\/strong> \u3092\u4f7f\u3063\u305f\u30eb\u30fc\u30eb\u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code># BEGIN WordPress\n&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\nRewriteBase \/\nRewriteRule ^index\\.php$ - [L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/index.php [L]\n&lt;\/IfModule&gt;\n# END WordPress<\/code><\/pre><\/div>\n\n\n\n<p class=\"is-style-icon_info\">\u3053\u306e <code>BEGIN WordPress<\/code> \uff5e <code>END WordPress<\/code> \u306e\u4e2d\u306f<br><strong><span class=\"swl-inline-color has-swl-deep-01-color\">\u7ba1\u7406\u753b\u9762\u304b\u3089\u81ea\u52d5\u7684\u306b\u4e0a\u66f8\u304d\u3055\u308c\u308b\u305f\u3081\u3001\u76f4\u63a5\u7de8\u96c6\u3057\u3066\u306f\u3044\u3051\u307e\u305b\u3093\u3002<\/span><\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u57fa\u672c\uff08301 \/ 302\uff09<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u7a2e\u985e<\/th><th>\u7528\u9014<\/th><\/tr><\/thead><tbody><tr><td>301<\/td><td>\u6052\u4e45\u7684\u306aURL\u5909\u66f4\uff08SEO\u8a55\u4fa1\u3092\u5f15\u304d\u7d99\u3050\uff09<\/td><\/tr><tr><td>302<\/td><td>\u4e00\u6642\u7684\u306a\u8ee2\u9001\uff08\u30c6\u30b9\u30c8\u30fb\u671f\u9593\u9650\u5b9a\uff09<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3067\u306f <strong>\u6052\u4e45\u79fb\u8ee2\u3092\u524d\u63d0\u306b 301 \u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/strong>\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd5\u2460\uff1a\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e <code>.htaccess<\/code> \u306b\u66f8\u304f<\/h2>\n\n\n\n<p>\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304b\u3089\u5225\u30c9\u30e1\u30a4\u30f3\u3001\u5225\u30c9\u30e1\u30a4\u30f3\u306e\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30b5\u30a4\u30c8\u3078\u306e\u79fb\u8ee2\u6642\u306b\u3088\u304f\u4f7f\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u60f3\u5b9a\u30b1\u30fc\u30b9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>https:\/\/example.com\/figma\/\n\u2193\nhttps:\/\/new-site.com\/figma\/<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u66f8\u304d\u65b9\uff08\/figma\/ \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185 <code>.htaccess<\/code>\uff09<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\n\n# \u7ba1\u7406\u753b\u9762\u30fb\u30ed\u30b0\u30a4\u30f3\u306f\u9664\u5916\nRewriteCond %{REQUEST_URI} !^\/figma\/wp-admin [NC]\nRewriteCond %{REQUEST_URI} !^\/figma\/wp-login\\.php [NC]\n\n# \/figma\/ \u4ee5\u4e0b\u3092\u5225\u30c9\u30e1\u30a4\u30f3\u3078\u8ee2\u9001\nRewriteRule ^(.*)$ https:\/\/new-site.com\/figma\/$1 [R=301,L]\n&lt;\/IfModule&gt;\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u30dd\u30a4\u30f3\u30c8<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e <code>.htaccess<\/code> \u3067\u306f<code>RewriteRule<\/code> \u306f <strong>\u305d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u57fa\u6e96<\/strong>\u3067\u8a55\u4fa1\u3055\u308c\u308b<\/li>\n\n\n\n<li><strong><span class=\"swl-inline-color has-swl-deep-01-color\">WordPress\u306e\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3088\u308a \u5fc5\u305a\u4e0a\u306b\u66f8\u304f<\/span><\/strong><\/li>\n\n\n\n<li><code>$1<\/code> \u3092\u4f7f\u3046\u3053\u3068\u3067 <strong>\u672b\u5c3e\u30d1\u30b9\u3092\u7dad\u6301<\/strong>\u3067\u304d\u308b<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u65b9\u6cd5\u2461\uff1a\u89aa\uff08\u30eb\u30fc\u30c8\uff09\u306e <code>.htaccess<\/code> \u306b\u307e\u3068\u3081\u3066\u66f8\u304f\u3010\u304a\u3059\u3059\u3081\u3011<\/h2>\n\n\n\n<p>\u8907\u6570\u306e\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u307e\u3068\u3081\u3066\u79fb\u8ee2\u3059\u308b\u5834\u5408\u306f\u3001<strong>\u30eb\u30fc\u30c8\u306e <code>.htaccess<\/code> \u306b\u96c6\u7d04\u3059\u308b\u65b9\u6cd5\u304c\u6700\u3082\u5b89\u5168\u30fb\u7ba1\u7406\u3057\u3084\u3059\u3044<\/strong>\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"is-style-icon_info\">\u8981\u3059\u308b\u306b\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u79fb\u8ee2\u3067\u3042\u308c\u3001\u89aa\u30b5\u30a4\u30c8\u306e<strong>.htaccess\u306b\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u8a18\u8ff0\u3059\u308b<\/strong>\u307b\u3046\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u66f8\u304d\u65b9\uff08\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8\uff09<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>&lt;IfModule mod_rewrite.c&gt;\nRewriteEngine On\n\nRewriteRule ^figma\/(.*)$ https:\/\/new-site.com\/figma\/$1 [R=301,L]\nRewriteRule ^photoshop\/(.*)$ https:\/\/new-site.com\/photoshop\/$1 [R=301,L]\nRewriteRule ^Illustrator\/(.*)$ https:\/\/new-site.com\/illustrator\/$1 [R=301,L]\nRewriteRule ^google-workspace\/(.*)$ https:\/\/new-site.com\/google\/$1 [R=301,L]\n&lt;\/IfModule&gt;\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u306e\u65b9\u6cd5\u306e\u30e1\u30ea\u30c3\u30c8<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WordPress\u306e\u81ea\u52d5\u4e0a\u66f8\u304d\u306e\u5f71\u97ff\u3092\u53d7\u3051\u306a\u3044<\/li>\n\n\n\n<li>1\u30d5\u30a1\u30a4\u30eb\u3067\u5168\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3092\u7ba1\u7406\u3067\u304d\u308b<\/li>\n\n\n\n<li>\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5074\u306eWordPress\u3092\u5b8c\u5168\u306b\u30b9\u30ad\u30c3\u30d7\u3067\u304d\u308b<\/li>\n\n\n\n<li>\u6280\u8853\u7684\u306b\u3082SEO\u7684\u306b\u3082\u610f\u56f3\u304c\u660e\u78ba<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\u306a\u305c WordPress \u3088\u308a\u300c\u4e0a\u300d\u306b\u66f8\u304f\u5fc5\u8981\u304c\u3042\u308b\u306e\u304b<\/h2>\n\n\n\n<p>WordPress\u306f\u3001\u5b58\u5728\u3057\u306a\u3044URL\u3092\u3059\u3079\u3066 <code>index.php<\/code> \u306b\u30eb\u30fc\u30c6\u30a3\u30f3\u30b0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>RewriteRule . \/index.php [L]<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u306e\u30eb\u30fc\u30eb\u304c\u5148\u306b\u52d5\u304f\u3068\u3001<strong>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u51e6\u7406\u307e\u3067\u5230\u9054\u3057\u307e\u305b\u3093\u3002<\/strong><\/p>\n\n\n\n<p><strong>\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f\u5fc5\u305a WordPress \u30eb\u30fc\u30eb\u3088\u308a\u5148\u306b\u66f8\u304f<\/strong>\u3001\u3053\u308c\u306f WordPress + .htaccess \u306e\u9244\u5247\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u6ce8\u610f\u70b9<\/h2>\n\n\n\n<p>\u899a\u3048\u3066\u304a\u304d\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2460 301\u306f\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u308b<\/h3>\n\n\n\n<p>\u30d6\u30e9\u30a6\u30b6\u306b\u5f37\u304f\u30ad\u30e3\u30c3\u30b7\u30e5\u3055\u308c\u308b\u305f\u3081\u3001<strong>\u691c\u8a3c\u6642\u306f\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30e2\u30fc\u30c9\u63a8\u5968<\/strong>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2461 \u5927\u6587\u5b57\u30fb\u5c0f\u6587\u5b57\u306b\u6ce8\u610f<\/h3>\n\n\n\n<p>\u305f\u3068\u3048\u3070<code>\/Illustrator\/<\/code> \u3068 <code>\/illustrator\/<\/code> \u306f\u5225\u7269\u3068\u3057\u3066\u6271\u308f\u308c\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2462 BEGIN WordPress \u5185\u306f\u89e6\u3089\u306a\u3044<\/h3>\n\n\n\n<p>\u7de8\u96c6\u3059\u308b\u3068\u7ba1\u7406\u753b\u9762\u64cd\u4f5c\u3067\u4e0a\u66f8\u304d\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>.htaccess<\/code> \u3067\u306e\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306f <strong>WordPress\u3088\u308a\u5148\u306b\u66f8\u304f<\/strong><\/li>\n\n\n\n<li>\u5358\u4f53\u306a\u3089\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea <code>.htaccess<\/code><\/li>\n\n\n\n<li>\u8907\u6570\u3042\u308b\u306a\u3089 <strong>\u89aa <code>.htaccess<\/code> \u306b\u307e\u3068\u3081\u308b<\/strong><\/li>\n\n\n\n<li>\u6052\u4e45\u79fb\u8ee2\u306f <strong>301\u30ea\u30c0\u30a4\u30ec\u30af\u30c8<\/strong>\u3092\u4f7f\u3046<\/li>\n<\/ul>\n\n\n\n<p>WordPress\u74b0\u5883\u3067\u306f\u300c\u3069\u3053\u306b\u66f8\u304f\u304b\u300d\u300c\u9806\u756a\u300d\u304c\u975e\u5e38\u306b\u91cd\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u4ed5\u7d44\u307f\u3092\u7406\u89e3\u3057\u3066\u304a\u3051\u3070\u3001\u5b89\u5168\u304b\u3064SEO\u306b\u914d\u616e\u3057\u305fURL\u79fb\u8ee2\u304c\u884c\u3048\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress\u30b5\u30a4\u30c8\u306e\u79fb\u8ee2\u3084\u69cb\u6210\u5909\u66f4\u306b\u4f34\u3044\u3001\u300c\u7279\u5b9a\u306eURL\u3060\u3051\u3092\u5225\u30c9\u30e1\u30a4\u30f3\u30fb\u5225\u30d1\u30b9\u3078\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u3057\u305f\u3044\u300d\u3068\u3044\u3046\u30b1\u30fc\u30b9\u306f\u3088\u304f\u3042\u308a\u307e\u3059\u3002 \u672c\u8a18\u4e8b\u3067\u306f\u3001.htaccess \u3092\u4f7f\u3063\u305f\u30ea\u30c0\u30a4\u30ec\u30af\u30c8\u306e\u57fa\u672c\u3068\u5b9f\u8df5\u7684\u306a\u66f8\u304d\u65b9\u3092\u3001Wo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":27604,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pochipp_cv_data":"","swell_btn_cv_data":"","footnotes":""},"categories":[119],"tags":[],"area":[],"class_list":["post-27603","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-migration"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/comments?post=27603"}],"version-history":[{"count":1,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27603\/revisions"}],"predecessor-version":[{"id":27605,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/posts\/27603\/revisions\/27605"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media\/27604"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/media?parent=27603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/categories?post=27603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/tags?post=27603"},{"taxonomy":"area","embeddable":true,"href":"https:\/\/motoki-design.co.jp\/wordpress\/wp-json\/wp\/v2\/area?post=27603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}