Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723
{"id":317,"date":"2013-09-30T05:28:12","date_gmt":"2013-09-30T13:28:12","guid":{"rendered":"http:\/\/blog.unethost.com\/?p=317"},"modified":"2014-04-16T16:33:56","modified_gmt":"2014-04-16T08:33:56","slug":"map_primary_domain_to_subfolder","status":"publish","type":"post","link":"https:\/\/blog.unethost.com\/map_primary_domain_to_subfolder\/","title":{"rendered":"\u5982\u4f55\u5c07\u300c\u4e3b\u57df\u540d\u300d\u6307\u5411\u300c\u5b50\u8cc7\u6599\u593e\u300d"},"content":{"rendered":"

\u5ba2\u6236\u5e38\u5e38\u6709\u4e00\u7a2e\u60c5\u6cc1\uff0c\u628a\u8ad6\u58c7\u6216\u662fCMS\u7684\u4e3b\u7a0b\u5f0f\uff0c\u704c\u5728public_html\u9019\u500b\u8cc7\u6599\u593e\u4e0b\u7684\u67d0\u500b\u5b50\u8cc7\u6599\u593e\uff0c\u4f8b\u5982bbs\uff0c\u4e4b\u5f8c\u53c8\u63d0\u4ea4\u670d\u52d9\u55ae\u7d66\u8eab\u70ba\u4e3b\u6a5f\u5546\u7684\u6211\uff0c\u5e0c\u671b\u4ed6\u7684\u7db2\u5740\uff0c\u53ef\u4ee5\u662f http:\/\/example.com\/index.php \u800c\u4e0d\u662f http:\/\/example.com\/bbs\/index.php \u7c21\u55ae\u7684\u8aaa\uff0c\u5c31\u662f\u5e0c\u671b\u53ef\u4ee5\u505aapache mod_rewrite\u628a\u5b50\u8cc7\u6599\u593e(subdirectory)\u7684\u8def\u5f91\u53bb\u6389\u3002<\/p>\n

\u8981\u505a\u9019\u4ef6\u4e8b\uff0c\u6b65\u9a5f\u5982\u4e0b\uff1a
\n(1) \u5728public_html\u4e0b\uff0c\u65b0\u589e\u4e00\u500b.htaccess<\/span>\u6a94
\n(2) \u5728.htaccess<\/span>\u6a94\u6848\uff0c\u8907\u88fd\u8cbc\u4e0a\uff0c\u4e0b\u65b9\u7684\u5167\u5bb9\u3002\u4e26\u4e14\u66ff\u63dbexample.com<\/span>\u70ba\u5ba2\u6236\u7684\u4e3b\u57df\u540d<\/span>\uff0c\u66ff\u63dbsubdirectory<\/span>\u70ba\u5ba2\u6236\u7684\u5b50\u8cc7\u6599\u593e<\/span>\uff0c\u66ff\u63dbindex.html<\/span>\u70ba\u5b50\u8cc7\u6599\u593e\u88e1\u7684\u7d22\u5f15\u6a94\u3002<\/span><\/p>\n

# UnetHost.com
\n# .htaccess main domain to subdirectory redirect
\n# Copy and paste the following code into the .htaccess file
\n# in the public_html folder of your hosting account
\n# make the changes to the file according to the instructions.
\n# Do not change this line.
\nRewriteEngine on
\n# Change example.com to be your main domain.
\nRewriteCond %{HTTP_HOST} ^(www.)?example.com<\/span>$
\n# Change ‘subdirectory’ to be the directory you will use for your main domain.
\nRewriteCond %{REQUEST_URI} !^\/subdirectory<\/span>\/
\n# Don’t change these line.
\nRewriteCond %{REQUEST_FILENAME} !-f
\nRewriteCond %{REQUEST_FILENAME} !-d
\n# Change ‘subdirectory’ to be the directory you will use for your main domain.
\nRewriteRule ^(.*)$ \/subdirectory<\/span>\/$1
\n# Change example.com to be your main domain again.
\n# Change ‘subdirectory’ to be the directory you will use for your main domain
\n# followed by \/ then the main file for your site, index.php, index.html, etc.
\nRewriteCond %{HTTP_HOST} ^(www.)?example.com<\/span>$
\nRewriteRule ^(\/)?$ subdirectory<\/span>\/index.html<\/span> [L]<\/p>\n","protected":false},"excerpt":{"rendered":"

\u5ba2\u6236\u5e38\u5e38\u6709\u4e00\u7a2e\u60c5\u6cc1\uff0c\u628a\u8ad6\u58c7\u6216\u662fCMS\u7684\u4e3b\u7a0b\u5f0f\uff0c\u704c\u5728public_html\u9019\u500b\u8cc7\u6599\u593e\u4e0b\u7684\u67d0\u500b\u5b50\u8cc7\u6599\u593e\uff0c\u4f8b\u5982bbs … \u95b1\u8b80\u5168\u6587 \u5982\u4f55\u5c07\u300c\u4e3b\u57df\u540d\u300d\u6307\u5411\u300c\u5b50\u8cc7\u6599\u593e\u300d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[4],"tags":[24,85,84],"_links":{"self":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/317"}],"collection":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/comments?post=317"}],"version-history":[{"count":7,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/317\/revisions"}],"predecessor-version":[{"id":632,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/317\/revisions\/632"}],"wp:attachment":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media?parent=317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/categories?post=317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/tags?post=317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}