有一个网站在Joomla,NavigationPath ist domain.tld/index.php/produkte/produkt1.html这工作正常。但是现在我激活了SEF URL按钮,Joomla生成了一个如下的链接:domain.tld/produkte/produkt1.html,这并不起作用。我将htaccess.txt重命名为.htaccess并重新启动Apache。 Modrewrite启用。我没有Joomla的经验,所以我不知道如何解决它。有谁能够帮助我?modrewrite导航路径与Joomla导致Apache错误
这里是SEO的Joomla科:
我.htacces代码
#Options +FollowSymLinks
RewriteEngine On
RewriteBase/
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L]
当我尝试访问使用domain.tld/PRODUKTE/produkt1.html我得到了以下错误apache error.log:
[Thu Mar 29 15:36:49 2012] [error] [client 10.1.1.10] File does not exist: /var/www/produkte, referer: http://domain.tld/
而浏览器显示我:
The requested URL /produkte/produkt1.html was not found on this server.
有没有解决的建议?
我明确指出Apache配置中的.htaccess日志的名称,现在它可以正常工作。谢谢 – kockiren 2012-04-02 07:24:41