2008年5月4日 星期日

本地测试joomla! Sef失败

在后台开启Search Engine Friendly URLs 后,却出现

Forbidden

You don't have permission to access /the-community/30-the-community/27-the-joomla-community on this server.

测试环境是 win+apache, 而我在服务器上,IIS6下面却是可行的,暂时未知是什么原因,估计是apache设置的问题。

通过google,终于查得问题所在,的确在apache设置方面,在apache配置文件,将

<Directory /var/www/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo Options
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>


改为


<Directory /var/www/*/web>
Options +Includes -Indexes
AllowOverride All
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>


主要是改红字那一行,其他可能不同。


改完,重启apache,问题解决。

0 评论: