windows主机安装wordpress利用php实现301重定向

11-15 | 夜光 | IT记录 | 0 个评论
windows主机安装wordpress利用php实现301重定向
在网站根目录index.php文件中,其它语句前面加入以下代码: //301_Redirect $the_host = $_SERVER['HTTP_HOST'];//取得当前域名 if(strtolower($the_host) != 'boliquan')//把这里的域名换上你想要的 { $URIRedirect=$_SE...

windows主机安装wordpress利用php开启GZip压缩

11-15 | 夜光 | IT记录 | 11 个评论
windows主机安装wordpress利用php开启GZip压缩
打开网站根目录index.php 找到 define('WP_USE_THEMES', true); 在下一行添加如下代码: //GZip_Compress ob_start('ob_gzhandler'); ...

windows主机安装wordpress利用404.php实现伪静态

11-15 | 夜光 | IT记录 | 2 个评论
windows主机安装wordpress利用404.php实现伪静态
国内很多Windows主机没有安装URL Rewrite组件(ISAPI Rewrite),我们可以利用自定义错误页面来实现伪静态,从而可以设置想要的固定链接。 一、将如下404.php放入网站根目录: <?php $qs = $_SERVER['QUERY_STRING']; $qsu = mb_convert_encoding("$qs...

windows主机通过configure-smtp插件实现发邮件功能

08-19 | 夜光 | IT记录 | 0 个评论
windows主机通过configure-smtp插件实现发邮件功能
注意:现在推荐采用这篇文章中的方法→wordpress通过WP SMTP插件实现发邮件功能 » windows主机通过configure-smtp插件实现发邮件功能: 一、以网易163邮箱为例,具体设置参数如下: (1)“SMTP host”:smtp (2)“SMTP port”:25 (3)“Use SMTPAuth?”:勾选上 (4)“SMTP use...

解决wordpress主题不支持mail-to-commenter回复通知问题_非插件显示随机文章

10-09 | 夜光 | IT记录 | 5 个评论
解决wordpress主题不支持mail-to-commenter回复通知问题_非插件显示随机文章
首先要使主机具有发邮件功能,而Godaddy的Windows主机禁用了mail()函数,导致WP自带的邮件功能无法使用。 使用configure-smtp插件来实现发邮件功能。 configure-smtp插件对于Godaddy的windows主机只需要以下设置四项: SMTP host:relay-hosting.secureserver SMTP port:25 ...

Godaddy的Windows IIS7主机开启GZip_WordPress用web.config文件开启GZip

10-04 | 夜光 | IT记录 | 6 个评论
Godaddy的Windows IIS7主机开启GZip_WordPress用web.config文件开启GZip
Godaddy Windows主机 IIS7 默认是没开启GZIP功能的, 但是GZIP能压缩数据,可加快传输速度。 WordPress有个插件WP-Super-Cache,里面有个选项“Compress pages so they’re served more quickly to visitors.”如果勾选了则是通过程序生成.gz文件来开启GZIP,但Godaddy主机本...

Godaddy的Windows主机发邮件_阅读全文按钮添加nofollow

09-25 | 夜光 | IT记录 | 2 个评论
Godaddy的Windows主机发邮件_阅读全文按钮添加nofollow
解决Godaddy的Windows主机安装wordpress不能发邮件问题: 使用configure-smtp插件,对于Godaddy的windows主机只需要以下设置四项: SMTP host:relay-hosting.secureserver SMTP port:25 Sender e-mail:发送地址,例如 Sende...

Godaddy的Windows主机使用教程

09-05 | 夜光 | IT记录 | 0 个评论
Godaddy的Windows主机使用教程
一:开通Godaddy随域名的Windows主机 登录后,依次点击:Free Products-Hosting Accounts-Activate Your Free Account-选择Windows主机和所要使用的域名。 好了之后,新申请的Windows主机账号,显示New Account,点击Setup Account进行参数设置,需等...