{"id":236278,"date":"2020-12-31T05:49:48","date_gmt":"2020-12-30T21:49:48","guid":{"rendered":"http:\/\/4563.org\/?p=236278"},"modified":"2020-12-31T05:49:48","modified_gmt":"2020-12-30T21:49:48","slug":"%e8%af%b7%e6%95%99-apache-htaccess-%e7%9b%b8%e5%85%b3vue-history-mode","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=236278","title":{"rendered":"\u8bf7\u6559 apache .htaccess \u76f8\u5173,vue history mode."},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u8bf7\u6559 apache .htaccess \u76f8\u5173,vue history mode.               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : youla <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<pre><code>&lt;IfModule mod_rewrite.c&gt;   RewriteEngine On   RewriteBase \/   RewriteRule ^index.html$ - [L]   RewriteCond %{REQUEST_FILENAME} !-f   RewriteCond %{REQUEST_FILENAME} !-d   RewriteCond %{REQUEST_URI} example [NC]   RewriteRule . \/index.html [L]      #hide .php      RewriteCond %{REQUEST_FILENAME} !-f   RewriteRule ^([^.]+)$ $1.php [NC,L] &lt;\/IfModule&gt;  # \u6211\u7684 vue-router \u91cc\u9762\u914d\u7f6e\u7684\u90fd\u662f example_xx \u5f62\u5f0f  # \u6628\u5929\u7684\u641e\u4e0d\u5b9a https:\/\/v2ex.com\/t\/736397 \u76f4\u63a5\u628a iis \u6362\u6210 apache \u4e86  # \u518d\u4f38\u624b  # \u770b\u8d77\u6765\u57fa\u672c\u6ca1\u95ee\u9898\u4e86\uff0c\u7528\u00b7CURL\u00b7\u6d4b\u8bd5\u4e86\u591a\u6b21  <\/code><\/pre>\n<h1>\u4f46\u662f\u6211\u73b0\u5728\u7684\u914d\u7f6e\u6587\u4ef6\u91cc\u9762 page.php -&gt; page \u5931\u6548\u4e86<br \/>Google \u4e86\u597d\u591a\u6b21\uff0c\u96be\u4ee5\u7406\u89e3\u8fd9\u4e2a\u914d\u7f6e\u6587\u4ef6\u5230\u5e95\u600e\u4e48\u5199\uff0c<br \/>\u5728\u7ebf\u6d4b\u8bd5\u5de5\u5177\u4e5f\u641e\u7684\u5934\u75bc\uff0c\u4f38\u624b\u3002<\/h1>\n<p>  <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>1<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4631259\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : youla <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/v2ex.com\/t\/736397<\/p>\n<p>\u6628\u5929 iis \u653e\u5f03\u4e86\uff0c\u5e94\u8be5\u662f\u73af\u5883\u54ea\u91cc\u6709\u95ee\u9898\uff0c\u518d\u4f38\u624b                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u8bf7\u6559 apache .htacce&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/236278"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=236278"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/236278\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=236278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=236278"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=236278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}