最新发表
普京、梅德韦杰夫卡通形象贺岁
唯一找到有字幕的版本,却发现不高清,还加了博客链接,相当无语,也罢也罢~
两位重量级司令的年终总结~细品
。
P2Psearcher:简单的P2P资源搜索工具(类似冯翔等人必不可缺呀!!)
P2Psearcher 本地下载 <—–点击此处下载
解压密码:www.metalnino.com
Nino给大家推荐一个P2P资源搜索软件,软件很小就几百K,可以自动连接到各大XX服务器和KAD网络,资源那是相当的多,一下是软件使用方法:
STEP1:默认按图上选择
STEP2:输入搜索关键字![]()
STEP3:右击“使用迅雷下载”,如果你不是迅雷是别的下载软件可以选择“复制ED2K链接”
STEP4:由于该软件设置了非法搜索的关键字,因此安装完毕后(不要启动软件)请将压缩包中wf.dat复制到安装目录下,替换原来的文件。如果还有问题可以给我留言~
PS:资源数越多的一般速度较快质量较好,可以点击资源数,进行升序降序排列。
WP设置页面为链接按钮
- 为当前主题添加一个Redirect模板(上传位置:../wp-content/themes/当前主题 /Redirect.php);
- 添加页面时选择该模板;
- 在正文处添加你的完整URL(如:http://www.metalnino.com);
- 发布页面即可实现页面跳转到链接的效果;
Redirect.php
<?php
/*
Template Name: Redirect
*/if (have_posts()) {
the_post();
$pattern = ‘@(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)@’;
preg_match($pattern, get_the_excerpt(), $matches);
if ($matches[0]) header(‘Location: ‘.$matches[0]);
else echo ‘Enter a URL into your page body text.’;
}
?>
WP固定链接伪静态设置
WP上架上了几天都没完美存在,纠结于固定链接自定义设置,在网上找寻了N多方法,最后选定了如下方案:
固定链接 自定义:/%post_id%.html
HTTPD.INI如下
[ISAPI_Rewrite]
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
# # 形式:/PostID.html
# # 自定义链接 /%post_id%.html
RewriteRule /Tags/(.*) /index\.php\?tag=$1
RewriteRule /(about|contact|about-copyright|favor|archives|tags|sitemap|link|help|security|%e5%85%b3%e4%ba%8e) /index\.php\?pagename=$1
RewriteRule /Category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?category_name=$1&feed=$2
RewriteRule /Category/?(.*) /index\.php\?category_name=$1
RewriteRule /author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed\.php\?author_name=$1&feed=$2
RewriteRule /author/?(.*) /index\.php\?author_name=$1
RewriteRule /rss.xml /wp-feed\.php/\?feed=rss2
RewriteRule /feed/?$ /wp-feed\.php/\?feed=rss2
RewriteRule /comments/feed/?$ /wp-feed\.php/\?feed=comments-rss2
RewriteRule /([0-9]+).html /index\.php\?p=$1 [I]
RewriteRule /page/(.*)/?s=(.*) /index\.php\?s=$2&paged=$1
RewriteRule /page/(.*) /index\.php\?paged=$1
RewriteRule /date/([0-9]{4})([0-9]{1,2})([0-9]{1,2})/([^/]+)/?([0-9]+)?/?$ /index\.php\?year=$1&monthnum=$2&day=$3&name=$4&page=$5
RewriteRule /date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&day=$3&page=$4
RewriteRule /date/([0-9]{4})/([0-9]{1,2})/?$ /index\.php\?year=$1&monthnum=$2&page=$3
RewriteRule /([0-9]+).html/(feed|rdf|rss|rss2|atom) /index\.php\?feed=rss2&p=$1
RewriteRule /([0-9]+).html/trackback /wp-trackback\.php\?p=$1
效果
文章链接:域名/123.html
页面链接:域名/about
要注意的是页面链接需要在下面这条代码中修改~
RewriteRule /(about|contact|about-copyright|favor|archives|tags|sitemap|link|help|security|%e5%85%b3%e4%ba%8e) /index\.php\?pagename=$1
方法都是学来的……但是那个博文地址我找不到了……所以嘛嘿嘿,先感谢下~![]()
WP正式上架 名曰: 吾家
新的开始:吾家
酝酿WP已经很久了,但是一直没有想到好的主题,昨天觉得还是做各种小玩意 的下载,包括破解呀、补丁呀、各种门呀等等,以后本站的下载资源将上传至网盘而不存在本地~网盘的速度是一个很大的问题,没办法呀,毕竟放在本地太不安全 了,为了安全起见,敏感内容将使用“黑话”表示,期望大家多多光临~

