{"id":28847,"date":"2024-11-25T09:44:15","date_gmt":"2024-11-25T01:44:15","guid":{"rendered":"https:\/\/fwq.ai\/blog\/28847\/"},"modified":"2024-11-25T09:44:15","modified_gmt":"2024-11-25T01:44:15","slug":"%e7%bb%87%e6%a2%a6%e6%80%8e%e4%b9%88%e5%8e%bb%e6%8e%89index-html","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/28847\/","title":{"rendered":"\u7ec7\u68a6\u600e\u4e48\u53bb\u6389index.html"},"content":{"rendered":"<blockquote><p>\n  \u7ec7\u68a6\u53bb\u6389index.html\u7684\u65b9\u6cd5\uff1a\u9996\u5148\u6253\u5f00dedecms\u6839\u76ee\u5f55\u4e0b\u7684index.php\u6587\u4ef6\uff1b\u7136\u540e\u66ff\u6362\u5185\u5bb9\u4e3a\u201cif(!file_exists(dirname(__file__).&#8217;\/data\/common.inc.php&#8217;)){..}\u201d\u5373\u53ef\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202105\/12\/2021051215064818497.jpg\" class=\"aligncenter\" title=\"\u7ec7\u68a6\u600e\u4e48\u53bb\u6389index.html\u63d2\u56fe\" alt=\"\u7ec7\u68a6\u600e\u4e48\u53bb\u6389index.html\u63d2\u56fe\" \/><\/p>\n<p>\u672c\u6587\u64cd\u4f5c\u73af\u5883\uff1awindows7\u7cfb\u7edf\u3001DedeCMS5.6\u7248\uff0cDELL G3\u7535\u8111<\/p>\n<p><strong>\u7ec7\u68a6cms\u53bb\u6389\u7f51\u7ad9\u9996\u9875\u540e\u7f00index.html\u65b9\u6cd5<\/strong><\/p>\n<p>\u641c\u7d22\u5f15\u64ce\u4f1a\u8ba4\u4e3a\/\u548c\/index.htm\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u9875\u9762\uff0c\u8f93\u5165\u57df\u540d\u9a6c\u4e0a\u5c31\u8f6c\u63a5\u5230www.dede58.com\/index.html\u7684\uff0c\u8fd9\u6837\u8def\u5f84\u53d8\u957f\uff0c\u4e5f\u4e0d\u5229\u4e8eSEO\uff0c\u8fd8\u4f1a\u5206\u6563\u6743\u91cd\uff0c\u9ed8\u8ba4\u7684DEDECMS\u9996\u9875\u751f\u6210\u9759\u6001\u540e\uff0c\u6253\u5f00\u6211\u4eec\u6240\u7528DEDECMS\u642d\u5efa\u7684\u7f51\u7ad9\u4f1a\u5728\u57df\u540d\u540e\u9762\u52a0\u4e0aindex.html\u8def\u5f84\uff0c\u4e00\u6765\u770b\u7684\u4e0d\u662f\u592a\u7f8e\u89c2\uff0c\u4e8c\u6765\u4f20\u8a00\u5bf9SEO\u6709\u6240\u5f71\u54cd\u3002<\/p>\n<p>\u6700\u7b80\u5355\u6700\u597d\u7684\u65b9\u6cd5\u5c31\u662f\u628aDEDECMS\u6839\u76ee\u5f55\u4e0b\u7684index.PHP\u5185\u4e2d\u7684\u4ee3\u7801\u5168\u90e8\u66ff\u6362\u6210\u5982\u4e0b\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>&lt;?php   \n    if(!file_exists(dirname(__FILE__).&#039;\/data\/common.inc.php&#039;))  \n    {  \n         header(&#039;Location:install\/index.php&#039;);  \n         exit();  \n    }  \n    require_once (dirname(__FILE__) . \"\/include\/common.inc.php\");  \n    require_once DEDEINC.\"\/arc.partview.class.php\";  \n    $GLOBALS[&#039;_arclistEnv&#039;] = &#039;index&#039;;  \n    $row = $dsql-&gt;GetOne(\"Select&nbsp;*&nbsp;From&nbsp;`dede_homepageset`\");&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;$row['templet']&nbsp;=&nbsp;MfTemplet($row['templet']);&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;$pv&nbsp;=&nbsp;new&nbsp;PartView();&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;$pv-&amp;gt;SetTemplet($cfg_basedir&nbsp;.&nbsp;$cfg_templets_dir&nbsp;.&nbsp;\"\/\"&nbsp;.&nbsp;$row['templet']);&nbsp;&nbsp;\n&nbsp;&nbsp;&nbsp;&nbsp;$pv-&amp;gt;Display();&nbsp;&nbsp;\n?&amp;gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u66ff\u6362\u540e\uff0c\u6e05\u7a7a\u4e0b\u4f60\u7684\u6d4f\u89c8\u5668\u7f13\u5b58\uff0c\u7136\u540e\u518d\u6253\u5f00\u770b\u770b\uff0c\u662f\u4e0d\u662f\u6ca1\u6709index.html\u4e86\uff0c\u6709\u7591\u95ee\u53ef\u4ee5\u8054\u7cfb\u6211\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5982\u679c\u4e0d\u60f3\u7528\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u4ee5\u4e07\u7f51\u865a\u62df\u4e3b\u673a\u4e3a\u4f8b\uff08\u4e0b\u56fe\uff09\uff1a\u5c06\u9ed8\u8ba4\u9996\u9875index.htm\u79fb\u5230\u6700\u4e0a\u9762\uff0c\u6700\u9ad8\u4f18\u5148\u7ea7\uff0c\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u5728\u7f51\u7ad9\u540e\u53f0\u66f4\u65b0\u4e3b\u9875\u5c31\u6ca1\u6709index.html\u4e86\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/image\/641\/236\/345\/1620803268320291.png\" class=\"aligncenter\" title=\"\u7ec7\u68a6\u600e\u4e48\u53bb\u6389index.html\u63d2\u56fe1\" alt=\"\u7ec7\u68a6\u600e\u4e48\u53bb\u6389index.html\u63d2\u56fe1\" \/><\/p>\n<p>\u63a8\u8350\u5b66\u4e60\uff1a\u300a\u300b<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6\u600e\u4e48\u53bb\u6389index.html\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ec7\u68a6\u53bb\u6389index.html\u7684\u65b9\u6cd5\uff1a\u9996\u5148\u6253\u5f00dedecms\u6839\u76ee\u5f55\u4e0b\u7684index.php\u6587\u4ef6\uff1b\u7136\u540e\u66ff\u6362\u5185\u5bb9\u4e3a\u201cif(!file_exists(dirname(__file__).&#8217;\/data\/common.inc.php&#8217;)){..}\u201d\u5373\u53ef\u3002 \u672c\u6587\u64cd\u4f5c\u73af\u5883\uff1awindows7\u7cfb\u7edf\u3001DedeCMS5.6\u7248\uff0cDELL G3\u7535\u8111 \u7ec7\u68a6cms\u53bb\u6389\u7f51\u7ad9\u9996\u9875\u540e\u7f00index.html\u65b9\u6cd5 \u641c\u7d22\u5f15\u64ce\u4f1a\u8ba4\u4e3a\/\u548c\/index.htm\u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u9875\u9762\uff0c\u8f93\u5165\u57df\u540d\u9a6c\u4e0a\u5c31\u8f6c\u63a5\u5230www.dede58.com\/index.html\u7684\uff0c\u8fd9\u6837\u8def\u5f84\u53d8\u957f\uff0c\u4e5f\u4e0d\u5229\u4e8eSEO\uff0c\u8fd8\u4f1a\u5206\u6563\u6743\u91cd\uff0c\u9ed8\u8ba4\u7684DEDECMS\u9996\u9875\u751f\u6210\u9759\u6001\u540e\uff0c\u6253\u5f00\u6211\u4eec\u6240\u7528DEDECMS\u642d\u5efa\u7684\u7f51\u7ad9\u4f1a\u5728\u57df\u540d\u540e\u9762\u52a0\u4e0aindex.html\u8def\u5f84\uff0c\u4e00\u6765\u770b\u7684\u4e0d\u662f\u592a\u7f8e\u89c2\uff0c\u4e8c\u6765\u4f20\u8a00\u5bf9SEO\u6709\u6240\u5f71\u54cd\u3002 \u6700\u7b80\u5355\u6700\u597d\u7684\u65b9\u6cd5\u5c31\u662f\u628aDEDECMS\u6839\u76ee\u5f55\u4e0b\u7684index.PHP\u5185\u4e2d\u7684\u4ee3\u7801\u5168\u90e8\u66ff\u6362\u6210\u5982\u4e0b\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b &lt;?php if(!file_exists(dirname(__FILE__).&#039;\/data\/common.inc.php&#039;)) { header(&#039;Location:install\/index.php&#039;); exit(); } require_once (dirname(__FILE__) . &#8220;\/include\/common.inc.php&#8221;); require_once DEDEINC.&#8221;\/arc.partview.class.php&#8221;; $GLOBALS[&#039;_arclistEnv&#039;] = &#039;index&#039;; $row = $dsql-&gt;GetOne(&#8220;Select&nbsp;*&nbsp;From&nbsp;`dede_homepageset`&#8221;);&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;$row[&#8216;templet&#8217;]&nbsp;=&nbsp;MfTemplet($row[&#8216;templet&#8217;]);&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;$pv&nbsp;=&nbsp;new&nbsp;PartView();&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;$pv-&amp;gt;SetTemplet($cfg_basedir&nbsp;.&nbsp;$cfg_templets_dir&nbsp;.&nbsp;&#8220;\/&#8221;&nbsp;.&nbsp;$row[&#8216;templet&#8217;]);&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;$pv-&amp;gt;Display();&nbsp;&nbsp; ?&amp;gt; \u767b\u5f55\u540e\u590d\u5236 \u66ff\u6362\u540e\uff0c\u6e05\u7a7a\u4e0b\u4f60\u7684\u6d4f\u89c8\u5668\u7f13\u5b58\uff0c\u7136\u540e\u518d\u6253\u5f00\u770b\u770b\uff0c\u662f\u4e0d\u662f\u6ca1\u6709index.html\u4e86\uff0c\u6709\u7591\u95ee\u53ef\u4ee5\u8054\u7cfb\u6211\u3002 &nbsp; \u5982\u679c\u4e0d\u60f3\u7528\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u4ee5\u4e07\u7f51\u865a\u62df\u4e3b\u673a\u4e3a\u4f8b\uff08\u4e0b\u56fe\uff09\uff1a\u5c06\u9ed8\u8ba4\u9996\u9875index.htm\u79fb\u5230\u6700\u4e0a\u9762\uff0c\u6700\u9ad8\u4f18\u5148\u7ea7\uff0c\u4fdd\u5b58\u8bbe\u7f6e\uff0c\u5728\u7f51\u7ad9\u540e\u53f0\u66f4\u65b0\u4e3b\u9875\u5c31\u6ca1\u6709index.html\u4e86\u3002 \u63a8\u8350\u5b66\u4e60\uff1a\u300a\u300b \u4ee5\u4e0a\u5c31\u662f\u7ec7\u68a6\u600e\u4e48\u53bb\u6389index.html\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-28847","post","type-post","status-publish","format-standard","hentry","category-cms"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28847","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=28847"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/28847\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=28847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=28847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=28847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}