wordpress有没有目录折叠插件?
Posted on | 1月 1, 2011 | No Comments
插件的作用是实现 :
添加文章页面的分类目录树,可以折叠和展开
因为当分类太多时,很难找到呀要选择的分类
有没有已实现这个功能的插件呢?
Helicon Ape
Posted on | 1月 1, 2011 | No Comments
ISAPI_Rewrite 3 可以让IIS实现URL重写功能,但如果你的服务器用的是IIS7+,则使用以下介绍的Ape 会更好些
Overview
Helicon Ape provides support for Apache .htacces and .htpasswd configuration files in Microsoft IIS. It literally implements Apache configuration model and all most demanded Apache modules in a single IIS add-on, not only making IIS compatible with Apache, but also extending it’s functionality by a number of highly essential features.
Includes following modules: mod_rewrite, mod_proxy, mod_auth, mod_gzip, mod_headers, mod_cache, mod_expires, mod_replace and others. You can check all currently available modules in the compatibility chart (the list is growing with new builds).
Helicon Ape offers
Compatibility
- modification-free transition of Apache web sites to IIS (.htaccess, .htpasswd, etc.);
- easy configuration of PHP and other Unix-based Web applications for IIS;
- powerful, fully Apache-compatible URL rewriting syntax — no rules redesign is necessary.
Usability
- user-friendly manager — configuration editing, syntax highlighting, help, testing utility in one place;
- plain text configurations — no XML;
- per-site installation without hosting administration participation;
- on-the-fly links, headers and HTML body modification.
Security
- customizable user authentication/authorization settings;
- comprehensive protection from DoS attacks and hotlinking (content leeching);
- all-round web request debugging with HTTP-level web developer toolset.
Performance
- full-fledged reverse and forward proxy functionality;
- drastic server speed-up due to finely adjustable compression and cache functions.
Helicon Ape is implemented as managed IIS7 module, but can be installed as .NET module on any ASP.NET-compatible IIS version as well. It works transparently for both server and client and can even be installed on a shared hosting account without administrative access.
And there is free version of Ape which can be installed on up to 3 web sites on any server at no cost.
Currently implemented modules
Module | empowers you to… |
---|---|
mod_asis | send files that contain their own HTTP headers |
mod_auth_basic | use HTTP Basic Authentication |
mod_auth_digest | use MD5 Digest Authentication |
mod_authn_anon | configure anonymous users access to authenticated areas |
mod_authn_dbd | provide authentication based on user look-up in SQL database |
mod_authn_default | reject whatever credentials if no authentication is set |
mod_authn_file | provide authentication based on user look-up in plain text password file |
mod_authz_default | reject any authorization request if no authentication is configured |
mod_authz_groupfile | allow or deny access to particular areas of the site depending on user group membership |
mod_authz_host | allow access control to particular parts of web server based on hostname, IP address or other characteristics of the client request |
mod_authz_user | allow or deny access to portions of the web site for authenticated users |
mod_cache | cache local or proxied content |
mod_core | use Helicon Ape core features |
mod_dbd | manage SQL database connections |
mod_deflate | compress server output |
mod_developer NEW! | debug web requests |
mod_disk_cache | use disk-based storage engine for mod_cache |
mod_env | control the environment provided to CGI scripts and SSI pages |
mod_evasive | protect your site(s) from HTTP DoS/DDoS attacks and brute force attacks |
mod_expires | set Expires HTTP header and max-age directive of Cache-Control HTTP header in server responses in relation to either the time the source file was last modified, or to the time of the client access |
mod_filter | use context-sensitive content filters |
mod_gzip | compress HTTP responses |
mod_headers | modify HTTP request and response headers |
mod_hotlink | protect the content from hotlinking |
mod_linkfreeze | change links on pages to SEO-friendly format |
mod_log_config | use custom logging |
mod_logio | log input and output number of bytes received/sent per request |
mod_mem_cache | use memory-based storage engine for mod_cache |
mod_mime | associate requested filename’s extensions with the file’s behavior (handlers and filters) and content (mime-type, language, character set and encoding) |
mod_proxy | apply forward and reverse proxy functions for your IIS server |
mod_replace | edit HTML body, HTTP request and response headers |
mod_rewrite | rewrite requested URLs on the fly based on regular-expressions-based rules and various conditions |
mod_seo NEW! | create SEO-friendly links on pages based on database or mapfile values |
mod_setenvif | set environment variables depending on whether different parts of the request match specified regular expressions |
mod_so | emulate loading modules functions |
mod_speling | correct misspelled URLs by performing case-insensitive checks and allowing one misspelling |
mod_usertrack | track and log user activity on the site using cookies |
mod_xsendfile NEW! | sends the file specified by X-SENDFILE header |
文章来源: http://www.helicontech.com/ape/
ISAPI_Rewrite 3
Posted on | 1月 1, 2011 | 1 Comment
《在Windows IIS下配置WordPress MU环境》文章中提到的 ISAPI_Rewrite 3,以下是它的一些相关介绍
ISAPI_Rewrite 3 – Apache .htaccess mod_rewrite compatible module for IIS
ISAPI_Rewrite is a powerful regular-expressions-based URL rewriter for IIS. It is compatible with Apache mod_rewrite making it possible to move configurations from Apache to IIS and vice versa just by copying .htaccess files (please see this compatibility chart). It is used for search engine optimization, to proxy another server’s content, stop hotlinking or strengthen server security.
Top features of ISAPI_Rewrite:
- The same syntax and behavior as of Apache mod_rewrite make it possible to migrate configurations just by copying .htaccess files. Read more about mod_rewrite compatibility here.
- Regular expressions for flexible and powerful configurations.
- Extremely fast and highly scalable pure C++ code.
- Real distributed configurations: global server level, virtual host (web site) level, directory level .htaccess files with real-time monitoring.
- Isolation – user level configuration affects only local user environment making ISAPI_Rewrite an ideal solution for web hosting providers.
Top usage examples:
- Search engine optimization. Read more.
- Proxying content of one web server through another web server. Read more.
- Prevention of content leeching (direct linking). See example.
- Blocking specific hosts, referrers or annoying robots.
- Content negotiation – serving different files for different language or different browsers. See example.
- Load balancing emulation for web cluster. See example.
Please find more useful examples in ISAPI_Rewrite documentation here and in Apache documentation here http://httpd.apache.org/docs/2.2/misc/rewriteguide.html Most Apache examples can run with ISAPI_Rewrite without modification.
Pricing details
- Free 45-day trial period.
- Single server (computer) license – $99.
- ISAPI_Rewrite Lite version is Freeware! (Read on specific limitations).
- Volume discounts available!
Click here to get older versions of ISAPI_Rewrite.
Windows Vista and the Windows Vista Start button are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
文章来源:http://www.helicontech.com/isapi_rewrite/
在Windows IIS下配置WordPress MU环境
Posted on | 1月 1, 2011 | No Comments
昨天介绍的Windows Server 2003下的IIS和Apache性能比较,其实Apache在Linux环境下的性能还是很不错的,我之所以使用Windows Server 2003而没有用Linux,是因为我对Linux的维护并不熟悉,因此才使用Windows环境。
在Windows环境下使用IIS搭建和Linux的Apache一样的环境也并非不可能,下面我就介绍一下我使用Windows Server 2003的IIS搭建一个和Apache一样的WordPress MU(WordPress多用户版)的过程。
首先要安装PHP和MySQL环境,为了方便安装,可以直接安装一个WAMP的集成安装环境,可以直接将Apache、MySQL和PHP安装好,将其安装为服务后,禁用Apache的服务,以免其和IIS冲突。
接着是在Windows Server 2003下配置PHP,配置方法是,在IIS的“WEB服务扩展”中,添加一个新的WEB服务扩展,程序后缀为PHP,ISAPI程序为 php5isapi.dll,然后再“环境变量”-“系统变量”中增加变量名PHPRC,数值为php.ini的路径,重启服务器即可完成PHP的配置。
接下来安装WordPress MU环境,安装过程和Apache环境下安装一样。
最后,最重要的一步就是设置URL重写(URL rewriter),目前我使用的是一个名为ISAPI_Rewrite 3的ISAPI实现的这个功能,3.0版本ISAPI_Rewrite兼容Apache的mod_rewrite格式,可以直接将.htaccess文件内容复制到httpd.conf中,可惜这个软件的免费版减少了很多有用的功能,多站点设置有点复杂。
ISAPI_Rewrite对于Apache的mod_rewrite并不是完全兼容,还需要对WordPress进行一些修改,打开WordPress MU的wp-settings.php文件,在文件的最开头增加下面这一行:
$_SERVER[‘REQUEST_URI’] = $_SERVER[‘HTTP_X_ORIGINAL_URL’];
好了,现在WordPress MU即可在IIS下运行了,WordPress单用户版的配置也是同样道理,而且会更简单。
如何在IIS环境下配置Rewrite规则
Posted on | 1月 1, 2011 | No Comments
URL 静态化可以提高搜索引擎抓取,开启本功能需要对 Web 服务器增加相应的 Rewrite 规则,且会轻微增加服务器负担。本教程讲解如何在 IIS 环境下配置各个产品的 Rewrite 规则。
一、首先下载 Rewrite.zip 的包,解压到任意盘上的任意目录。
各个产品的 Rewrite 规则包不同,请选择对应的产品下载对应的 Rewrite 规则。
Discuz!6.0.0/6.1.0 的 Rewrite 规则下载地址:Rewrite.zip
UCenter Home1.0.0 的 Rewrite规则下载地址:Rewrite.zip
SupeSite6.0_X-Space4.0_UC 的Rewrite 规则下载地址:iisrewrite.zip
SupeV 的 Rewrite 规则下载地址:rewrite_iis.zip
下载各个产品的 Rewrite 规则并且重命名后如下图所示存放:
二、配置方法
Discuz!、UCHome、SupeSite/X-Space、SupeV 的 Rewrite 配置方法类似,下面以 Discuz!6.0.0/6.1.0 的 Rewrite 规则配置方法为例讲解如何在 IIS 环境下配置 Rewrite 规则。
在 IIS 管理器里选择网站,右键选择“属性”,如下图所示:
在弹出的窗口里选择“ISAPI筛选器”
上图中点击“添加”,在弹出的窗口里“筛选器名称”填写“rewrite”
上图界面中点击“浏览”,选择下载解压后的 Discuz! Rewrite 规则目录下的 Rewrite.dll 文件
浏览完毕点击“确定”
添加完毕点击“确定”
重新启动 IIS
重新选择该站点 => 右键“属性”=> “ISAPI 筛选器”,如果看到状态为向上的绿色箭头,就说明 Rewrite 模块安装成功了。
Rewrite 规则配置成功了,但是这个时候浏览论坛地址依旧不是伪静态的,还需要到论坛后台做相应的设置才可以。
论坛后台 => 全局 => 优化设置,下图中红色区域选项:
“URL 静态化”:如上图所示有五个选项,根据您的需求选择即可,最多可以选择五个,不选则不生效。
“Rewrtie 兼容性”:如果您的服务器不支持 Rewrite 规则中的中文字符,请选择“是”。对于没有此问题的服务器,可以选择“否”。
上面两项设置完毕“提交”保存即可。
这个时候返回到论坛首页随便打开一个版块或者一个帖子即可看到 Discuz! 的 Rewrite 伪静态配置成功!
三、各个产品的 Rewrite 规则
httpd.ini 文件内容如下配置
[ISAPI_Rewrite] # 3600 = 1 hour CacheClockRate 3600 RepeatLimit 32 # Discuz! Rewrite规则 # 独立主机用户 # Protect httpd.ini and httpd.parse.errors files # from accessing through HTTP RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)\?*(.*)$ $1/archiver/index\.php\?$2&$4 RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forumdisplay\.php\?fid=$2&page=$3&$4 RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/viewthread\.php\?tid=$2&extra=page\%3D$4&page=$3&$4 RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/space\.php\?$2=$3&$4 RewriteRule ^(.*)/tag-(.+)\.html\?*(.*)$ $1/tag\.php\?name=$2&$3 # SupeSite Rewrite规则 # 独立主机用户 # 修改以下语句中的 /supesite 修改为你的SupeSite目录地址,如果程序放在根目录中,请将 /supesite 修改为 / RewriteRule ^/supesite/([0-9]+)$ /supesite/index\.php\?uid/$1 [L] RewriteRule ^/supesite/([0-9]+)/spacelist(.+)$ /supesite/index\.php\?uid/$1/action/spacelist/type$2 [L] RewriteRule ^/supesite/([0-9]+)/viewspace(.+)$ /supesite/index\.php\?uid/$1/action/viewspace/itemid$2 [L] RewriteRule ^/supesite/([0-9]+)/viewbbs(.+)$ /supesite/index\.php\?uid/$1/action/viewbbs/tid$2 [L] RewriteRule ^/supesite/([0-9]+)/(.*)$ /supesite/index\.php\?uid/$1/$2 [L] RewriteRule ^/supesite/action(.+)$ /supesite/index\.php\?action$1 [L] RewriteRule ^/supesite/category(.+)$ /supesite/index\.php\?action/category/catid$1 [L] RewriteRule ^/supesite/viewnews(.+)$ /supesite/index\.php\?action/viewnews/itemid$1 [L] RewriteRule ^/supesite/viewthread(.+)$ /supesite/index\.php\?action/viewthread/tid$1 [L] RewriteRule ^/supesite/mygroup(.+)$ /supesite/index\.php\?action/mygroup/gid$1 [L] # UCHome Rewrite规则 # 独立主机用户 # 修改以下语句中的 /uchome 修改为你的uchome目录地址,如果程序放在根目录中,请将 /uchome 修改为 / RewriteRule ^/uchome/(space|network)-(.+)\.html$ /uchome/$1\.php\?rewrite=$2 [L] RewriteRule ^/uchome/(space|network)\.html$ /uchome/$1\.php [L] RewriteRule ^/uchome/([0-9]+)$ /uchome/space\.php\?uid=$1 [L] # SupeV Rewrite规则 # 独立主机用户 RewriteRule ^(.*)/ivideo(-tv-([0-9]+))?(-ti-([0-9]+))?(-tc-([0-9]+))?(-page-([0-9]+))?\.html$ $1/ivideo\.php\?tv=$3&ti=$5&tc=$7&page=$9 RewriteRule ^(.*)/ispecial(-tv-([0-9]+))?(-ti-([0-9]+))?(-tc-([0-9]+))?(-page-([0-9]+))?\.html$ $1/ispecial\.php\?tv=$3&ti=$5&tc=$7&page=$9 RewriteRule ^(.*)/icategory\.html$ $1/icategory\.php RewriteRule ^(.*)/category-cid-([0-9]+)(-tag-([^-]*))?(-timelimit-([0-9]+))?(-orderlimit-([0-9]+))?(-page-([0-9]+))?\.html$ $1/category\.php\?cid=$2&tag=$4&timelimit=$6&orderlimit=$8&page=$10 RewriteRule ^(.*)/vspace-(mid|username)-(.+)\.html$ $1/vspace\.php\?$2=$3 RewriteRule ^(.*)/video-(vid|ivid)-(.+)\.html$ $1/video\.php\?$2=$3 RewriteRule ^(.*)/special-spid-([0-9]+)\.html$ $1/special\.php\?spid=$2 文章来源:http://faq.comsenz.com/viewnews-11
Hello world!
Posted on | 1月 1, 2011 | 1 Comment
欢迎使用 WordPress。这是系统自动生成的演示文章。编辑或者删除它,开始您的博客!