Windows Live Writer是一个非常优秀的博客离线文章管理工具。通过MovableType XML-RPC插件,Joomla也可以使用WLW离线发布文章,以下是设置方法:
1、配置Joomla站点。下载MovableType XML-RPC plugin并在管理后台“Extensions->Install/Uninstall”中安装,然后在“Extensions->Plugin Manager”中启用XML-RPC-MovableType API,最后,在“Site->Global Configuration->System->System Settings->Enable Web Services”中设置为[Yes]。
2、下载并安装Windows Live Writer。首次运行时,按照向导进行设置:
选择“Other blog service”
填写Joomla站点URL、用户名和密码,比如:http://www.log4it.com、admin、123456。
博客类型选择“Movable Type API”,并填写API页面URL,比如:http://www.log4it.com/xmlrpc/index.php。
设置博客名称,完成。
首先在Drupal安装目录中创建内容如下的Web.config文件:
<?xml version=”1.0″ encoding=”UTF-8″?> <configuration> <system.webServer> <rewrite> <rules> <rule name=”Drupal Clean URLs” stopProcessing=”true”> <match url=”^(.*)$” /> <conditions> <add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true” /> <add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true” /> </conditions> <action type=”Rewrite” url=”index.php?q={R:1}” appendQueryString=”true” /> </rule> </rules> </rewrite> </system.webServer></configuration>
然后,在Drupal管理界面中启用Clean URLs:(参考文章:http://learn.iis.net/page.aspx/505/install-drupal-on-iis/)
Joomla生成的各个页面默认使用带查询参数的URL。在Apache中可以通过.htaccess文件配置URL重写,在IIS6中需要ISAPI_Rewrite或者Ionics ISAPI Rewrite Filter之类的插件实现URL重写,而在IIS7中可以通过安装Microsoft URL Rewrite Module for IIS 7实现。以下是IIS7中Joomla通过URL Rewrite实现搜索引擎友好地址的方法。1、下载并安装Microsoft URL Rewrite Module for IIS 7(好多虚拟主机提供商默认已经安装了,比如GoDaddy.com)。2、在Joomla安装目录中创建文件名为Web.config的文件。3、在Web.config文件中粘贴以下内容并保存:
<?xml version=”1.0″ encoding=”UTF-8″?><configuration> <system.webServer> <rewrite> <rules> <rule name=”Security Rule” stopProcessing=”true”> <match url=”^(.*)$” ignoreCase=”false” /> <conditions logicalGrouping=”MatchAny”> <add input=”{QUERY_STRING}” pattern=”mosConfig_[a-zA-Z_]{1,21}(=|\%3D)” ignoreCase=”false” /> <add input=”{QUERY_STRING}” pattern=”base64_encode.*\(.*\)” ignoreCase=”false” /> <add input=”{QUERY_STRING}” pattern=”(\<|%3C).*script.*(\>|%3E)” /> <add input=”{QUERY_STRING}” pattern=”GLOBALS(=|\[|\%[0-9A-Z]{0,2})” ignoreCase=”false” /> <add input=”{QUERY_STRING}” pattern=”_REQUEST(=|\[|\%[0-9A-Z]{0,2})” ignoreCase=”false” [...]