技术交流QQ群:①185473046   ②190706903   ③203744115   网站地图
登录

下次自动登录
现在位置 >首页 > WordPress
0℃
2014年01月29日 IIS ⁄ 被围观 27,643次+
说明: 操作系统:Windows Server 2012 R2 Web服务器:IIS 8.5 网站程序:WordPress 网站根目录:C:\inetpub\wwwroot 网站域名:www.osyunwei.com 实现目的: 配置WordPress伪静态 具体操作: 一、确认IIS 8.5是否安装IIS URL Rewrite 打开:控制面板\系统和安全\管理工具\Internet Information Services (IIS)管理器 看到URL重写,说明已经安装了IS URL Rewrite,否则要先安装此插件。 IIS URL Rewrite下载:http://download.microsoft.com/download/4/E/7/4E7ECE9A-DF55-4F90-A354-B497072BDE0A/rewrite_x64_z...
阅读全文
24℃
说明: 操作系统:CentOS 6.2 32位 系统安装教程:CentOS 6.2安装(超级详细图解教程): http://www.osyunwei.com/archives/1537.html 准备篇: 一、配置好IP、DNS 、网关,确保使用远程连接工具能够连接服务器        CentOS 设置IP地址、网关、DNS教程:http://www.osyunwei.com/archives/423.html 二、配置防火墙,开启80端口、3306端口 vi /etc/sysconfig/iptables   #编辑防火墙配置文件       -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT(允许80端口通过防火墙)       -A INPUT -m...
阅读全文
0℃
2012年02月01日 Apache ⁄ 被围观 23,588次+
1、首先确定Apache是否加载了Mod_rewrite 模块 方法: 检查 /etc/httpd/conf/httpd.conf 中是否存在以下两段代码 (具体路径可能会有所不同,但形式基本是一样的): (一)LoadModule rewrite_module libexec/mod_rewrite.so (二)AddModule mod_rewrite.c 2、检查Apache是否开启.htaccess支持 vi  /etc/httpd/conf/httpd.conf   AllowOverride All   #如果后面参数为None需要修改为All(大概在338行) 3、在文件/etc/httpd/conf/httpd.conf相应的主机目录配置中加入如下代码(此时须注意,如果网站是通过虚拟主机来定...
阅读全文
1℃
2012年02月01日 Nginx ⁄ 被围观 25,124次+
     1、在相应nginx配置文件的server容器中添加下面的代码      系统运维  www.osyunwei.com  温馨提醒:qihang01原创内容©版权所有,转载请注明出处及原文链接 location / { if (-f $request_filename/index.html){                 rewrite (.*) $1/index.html break;         } if (-f $request_filename/index.php){                 rewrite (.*) $1/index.php;         } if (!-f $request_filename){                 rewrite (.*) /index.php;         } } 例如:        vi /usr/local/nginx/conf/nginx...
阅读全文


Copyright© 2011-2024 系统运维 All rights reserved
版权声明:本站所有文章均为作者原创内容,如需转载,请注明出处及原文链接
陕ICP备11001040号-3