sense的部落格

Seek Some Sense

Entries Tagged ‘OpenSEF’

OpenSEF配置和使用

1:GoogleSitemap扩展的一个小问题
默认的生成XML文件的位置是:/components/com_sef/google_opensef.xml
而robots.txt有这么一条:

Disallow: /components/
所以说这个设计比较不人性化,而可喜的是在设置里面是可以修改XML文件位置的。
Edit Configuration--Google Sitemap-Sitemap location: 下面一行留空,然后把/components/com_sef/google_opensef.xml这个文件移动到根目录下面重新生成就OK了,不然的话它会提示你XML文件不存在的。

OpenSEF安装配置

1,Open-SEF我就不介绍了,大家可以去sourceforge站点看.
2,Open-SEF下载(目前最新版本是2.0.0-RC5_SP2)
200704/joomla_com_opensef_2.0.0-rc5_sp2.zip
原来的官方网站http://www.open_sef.org已经不能访问了,它曾经转移到这里,而现在它又转移到了这里你可以随时关注Open-SEF最新消息了.
3,安装就不多说了,installers-components-upload and install~
4,install success后你要enable Open-SEF和简单的配置一下,然后清空ALL cache(如果启用),再add a new content,回到首页,你会发现刚刚发表的文章的URL已经变成Search Engine Friendly了,就要我们想要的结果.
但是打开后返回的是一个404 PAGE NOT FOUND,说明配置还没结束.
接着,要把站点根目录下的htaccess.txt改成.htaccess,当然,我们启用Joomla内置的SEF后也要改的,但这里编辑一下.
一共有两个地方:

1. Standard SEF Section
2. 3rd Party or Core SEF Section
就是把Joomla core SEF section禁用,打开3rd Party or Core SEF Section.

########## Begin - Joomla! core SEF Section
############# Use this section if using ONLY Joomla! core SEF
## ALL (RewriteCond) lines in this section are only required [...]