我正在使用主人.htaccess http://joomla-master-htaccess.googlecode.com/svn-history/r40/trunk/joomla-master-htaccess.txt
我试图为我的k2模块设置一个RewriteRule来添加项目,firebug Net面板指向http://www.wyzed.net/component/k2/item/add?tmpl=component返回一个Not Found 404错误
item / add?tmpl = component
我试过这个
RewriteRule ^ components / com_k2.php $ - [L]
RewriteRule ^ modules / mod_k2_content / tmpl / Default.php $ - [L]
RewriteRule ^ modules / mod_k2_content.php $ - [L]
RewriteRule ^ components / com_k2 / controllers.php $ - [L]
仍然没有成功我想知道是否有人使用joomla和k2与主人.htaccess添加弄清楚如何将一个例外规则添加到k2模块
答案 0 :(得分:0)
使用K2扩展与master .htaccess删除这些行
## Disallow visual fingerprinting of Joomla! sites (module position dump)
## Initial idea by Brian Teeman and Ken Crowder, see:
## http://www.slideshare.net/brianteeman/hidden-joomla-secrets
## Improved by @nikosdion to work more efficiently and handle template
## and tmpl query parameters
RewriteCond %{QUERY_STRING} (^|&)tmpl=(component|system) [NC]
RewriteRule .* - [L]
RewriteCond %{QUERY_STRING} (^|&)t(p|emplate|mpl)= [NC]
RewriteRule .* - [F]
和本节
## Referrer filtering for common media files. Replace with your own domain name.
用这个
替换最后一行RewriteRule \.(jp(e?g|2)?|png|gif|bmp|js|swf|ico)$ - [F]
允许来自k2的css加载..
享受。