我正在使用drupal 7网站,该网站需要在分类标记页的网址末尾有一个尾部斜线,但不包括扩展名为“.htm”的节点页面。将追加斜杠添加到网址
我曾通过编辑的Drupal的.htaccess文件试过,我添加以下代码:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} !=/favicon.ico
#RewriteRule^index.php [L]
RewriteCond %{REQUEST_URI} !*.htm
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://domain.com/$1/ [L,R=301]
但是这不是为我工作。任何人都可以建议我如何完成这项工作。
注:我的工作光的httpd服务器上http://www.lighttpd.net/
在此先感谢。