• Apache下.htaccess文件常用配置

    .htaccess文件是Apache服务器中最常用的一个配置文件,它负责相关目录下的网页配置。通过htaccess文件,可以帮我们实现:网页301重定向、自定义404错误页面、改变文件扩展名、允许/阻止特定的用户或者目录的访问、禁止目录列表、配置索引入口等功能。   另外,.htaccess手动编辑方法是使用UE或notepad2等高级文本编辑器。如果不方便下载或手动编写的文件出错,也非常推荐...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2012年2月05日 | 分类:Apache | 阅读:1,467次 |
  • Nginx 伪静态、重定向、包括域名、目录、文件等方法

    在网站建设中需要网页重定向的情况很多:如网页目录结构变动,网页重命名、网页的扩展名改变、网站域名改变等。如果不做重定向,用户的收藏和搜索引擎数据库中的旧地址只能让访客得到一个404错误信息页面,访问流量白白丧失。不仅如此,之前该页面的一切积累(比如PR值)就都白费了。   301重定向不仅能使页面实现自动跳转,对于搜索引擎来说,也可能可以传递PR值   1、将...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2012年2月05日 | 分类:Nginx | 阅读:2,064次 | 标签:
  • 阿帕奇 httpd.conf 翻译

    # 基于 NCSA 服务的配置文件。   #   #这是Apache服务器主要配置文件。   #它包含服务器的影响服务器运行的配置指令。   #   #不要只是简单的阅读这些指令信息而不去理解它。   #这里只是做了简单的说明,如果你没有参考在线文件,你就会被警告。   #   #这些配置指令被分为下面三个部分:   #1. 控制整个Apache服务器行为的部分(即全局环境变量)   #2...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2012年2月05日 | 分类:Apache | 阅读:1,903次 |
  • Nginx 502错误触发条件与解决办法

    一些运行在Nginx上的网站有时候会出现“502 Bad Gateway”错误,有些时候甚至频繁的出现。有些站长是在刚刚转移到Nginx之后就出现了这个问题,所以经常会怀疑这是不是Nginx的问题,但事实上这是个误区。 今年铁道部的的网站(www.12306.cn)就出现过这样的问题,大家可以根据下面的参考来研究一下。   以下是从张宴和Ayou的博客搜集整理的一些Nginx 502错误的排查方法,供大家...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2012年2月05日 | 分类:Nginx | 阅读:1,666次 |
  • PHP优化方法

    我们在编写程序时,总是想要使自己的程序占用资源最小,运行速度更快,代码量更少。往往我们在追求这些的同时却失去了很多东西。下面我想讲讲我对PHP优化的理解。优化的目的是花最少的代价换来最快的运行速度与最容易维护的代码。   进行大范围的优化,而不是死啃某些程序代码   我这里所说的优化,基本上都是从服务器,Apache,数据库这些方面来进行的优化,而并不是对...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2012年1月04日 | 分类:PHP | 阅读:1,574次 |
  • Apache实现图片防盗链

    Apache实现图片防盗链以及,显示一张“禁止盗链”的图片,我们可以用mod_rewrite 来实现。 假设充许连结图片的主机域名为:www.wmphp.com 修改httpd.conf SetEnvIfNoCase Referer "^" local_ref=1 Order Allow,Deny Allow from env=local_ref 这个简单的应用不光可以解决图片盗链的问题,稍加修改还可以防止任意文件盗链下载的问题。 使用以上的方法当从非指定的主机连结图...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2011年12月20日 | 分类:Apache | 阅读:1,487次 |
  • 仿1号店模板2011版 ecshop 2.7.2 模板

    此模板适用ecshop 2.7.2 GBK,UTF8 模板价格:1000元 (包括GBK和UTF8版本)。 购买咨询QQ:136882447 提供安装,使用指导,模板BUG维护服务。 模板购买以演示的为准,购买前请于我交流。 模板可提供更改,如需细节的更改,费用另议。 我们模板可升级 并且终身向用户免费提供。 模版截图下如: 商品页放大镜效果:
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2011年11月14日 | 分类:Ecshop | 阅读:1,621次 | 标签:
  • dede旅游网站程序系统

      程序说明: 本程序使用PHP+Mysql开发,采用DEDE(DEDECMS)内核,进行的二次开发,以逐渐成为旅游网站建设的首选,本程序非本人所开发, 也不进行交易,只是展示给大家,如果有建设旅游网站的需求,请联系本人,下面是程序功能的介绍。 程序功能介绍: 1、旅游线路模块、酒店模块、租车模块、签证模块、景点模块、文章模块、客户回访模块、网站公告模块、评论模块、...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2011年10月05日 | 分类:DedeCMS技巧 | 阅读:3,081次 |
  • dede模板:白领旅游网+旅游模版

    #gallery-1 { margin: auto; } #gallery-1 .gallery-item { float: left; margin-top: 10px; text-align: center; width: 33%; } #gallery-1 img { border: 2px solid #cfcfcf; } #gallery-1 .gallery-caption { margin-left: 0; } /* see gallery_shortcode() in wp-includes/media.php */ ...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2011年8月18日 | 分类:DedeCMS技巧 | 阅读:2,505次 | 标签:
  • 修改Ecshop底部版权中的时间

    本教程所说的年份信息,指的是页脚“版权所有”前面的年份,如下面红色部分所示 © 2005-20110 ECSHOP 版权所有,并保留所有权利。 后面的“2010” 能随着服务器的年份而改变,但是前面的2005却始终不变。 比如:我的网店是2007年上线的, 我希望改成2007-2010, 应该怎么改呢?? 打开 /languages/zh_cn/common.php 文件 找到 $_LANG['copyright'] = "© 2005-%s %s 版权...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2011年8月17日 | 分类:Ecshop | 阅读:1,789次 |
  • 如何去除Ecshop的底部版权

    1、 首先修改模板文件, 以官方默认模板为例, 打开ECSHOP模板文件夹(themes/default/library/)下的 page_footer.lbi 文件 删除下面这一行 {foreach from=$lang.p_y item=pv}{$pv}{/foreach}{$licensed} 2、 修改JS文件 打开 /js/common.js 文件,找到下面代码并删除之 onload = function() { var link_arr = document.getElementsByTagName(String.fromCharCode(6...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2011年8月16日 | 分类:Ecshop | 阅读:1,404次 |