raksmart活动促销

分享

写回答

发帖

请问静态化之后的关键词怎么弄

国外虚拟主机 国外虚拟主机 1311 人阅读 | 4 人回复

发表于 2007-11-16 19:36:37 | 显示全部楼层 |阅读模式

我的dz已经静态化成功了,和咱们这个论坛一样,就是主页看着还是index.php,然后查看源文件就是html那样了,但是我从ftp上下载下来就又变成原来那中php代码了,请问我要怎么做?

回答|共 4 个

大漠孤狼

发表于 2007-11-16 20:58:45 | 显示全部楼层

你要做什么?

killer

发表于 2007-11-16 21:24:57 | 显示全部楼层

怎么说呢,就是像这个一样
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title> 美国主机侦探 美国虚拟主机交流,导购 - Powered by Discuz!</title>
  6. <meta name="keywords" content="国外空间,美国空间,美国主机,美国虚拟主机,lunarpages,godaddy,hostmonster" />
  7. <meta name="description" content=" 美国主机侦探 美国主机美国虚拟主机介绍导购 - Discuz! Board" />
  8. <meta name="generator" content="Discuz! 6.0.0" />
  9. <meta name="author" content="Discuz! Team and Comsenz UI Team" />
  10. <meta name="copyright" content="2001-2007 Comsenz Inc." />
  11. <meta name="MSSmartTagsPreventParsing" content="True" />
  12. <meta http-equiv="MSThemeCompatible" content="Yes" />
  13. <link rel="archives" title="美国主机侦探" href="http://bbs.idcspy.com/archiver/" />
  14. <link rel="alternate" type="application/rss+xml" title="美国主机侦探" href="http://bbs.idcspy.com/rss.php?auth=gr3d769HDPl0kZdRnSAttX%2F6srSHPVQ" />
  15.         <link rel="stylesheet" type="text/css" href="forumdata/cache/style_6.css" />
  16.         <link rel="stylesheet" type="text/css" href="forumdata/cache/style_6_append.css" />
  17. <script type="text/javascript">var IMGDIR = './images/GreenPark';var attackevasive = '0';var gid = 0;gid = parseInt('0');var fid = parseInt('0');var tid = parseInt('0');</script>
  18. <script src="include/javascript/common.js" type="text/javascript"></script>
  19. <script src="include/javascript/menu.js" type="text/javascript"></script>
  20. <script src="include/javascript/ajax.js" type="text/javascript"></script>
  21. </head>
复制代码
你看这一行“国外空间,美国空间,美国主机,美国虚拟主机,lunarpages,godaddy,hostmonster”这不是关键词么,我那个应该在哪填啊,我那个查看源文件的时候也是这种格式,但是查看源文件的时候不是改了也没用么,我得从ftp上下来改,我下来之后就变成
  1. <?php

  2. /*
  3.         [Discuz!] (C)2001-2007 Comsenz Inc.
  4.         This is NOT a freeware, use is subject to license terms

  5.         $Id: index.php 10486 2007-09-03 06:53:29Z liuqiang $
  6. */

  7. define('CURSCRIPT', 'index');

  8. require_once './include/common.inc.php';
  9. require_once DISCUZ_ROOT.'./include/forum.func.php';

  10. $discuz_action = 1;

  11. if($cacheindexlife && !$discuz_uid && $showoldetails != 'yes' && (!$_DCACHE['settings']['frameon'] || $_DCACHE['settings']['frameon'] && $_GET['frameon'] != 'yes') && empty($gid)) {

  12.         $indexcache = getcacheinfo(0);

  13.         if($timestamp - $indexcache['filemtime'] > $cacheindexlife) {
  14.                 @unlink($indexcache['filename']);
  15.                 define('CACHE_FILE', $indexcache['filename']);
  16.                 $styleid = $_DCACHE['settings']['styleid'];
  17.         } elseif($indexcache['filename']) {
  18.                 @readfile($indexcache['filename']);
  19.                 $debug && debuginfo();
  20.                 die('<script type="text/javascript">document.getElementById("debuginfo").innerHTML = " '.($debug ? 'Update at '.gmdate("H:i:s", $indexcache['filemtime'] + 3600 * 8).', Processed in '.$debuginfo['time'].' second(s), '.$debuginfo['queries'].' Queries'.($gzipcompress ? ', Gzip enabled' : '') : '').'";</script>');
  21.         }
  22. }
复制代码
这样的了,不是查看源文件时的样子了。
我是这方面菜鸟,可能这个问题很弱,还望解答,谢谢

大漠孤狼

发表于 2007-11-16 21:27:22 | 显示全部楼层

论坛控制面板设置

killer

发表于 2007-11-16 21:32:52 | 显示全部楼层

找到了,谢谢您的解答
RAKSmart

大象无形

发表于 2007-11-16 23:54:27 | 显示全部楼层

搞定了就好
您需要登录后才可以回帖 登录 | 注册

本版积分规则