Im using the master .htaccess http://joomla-master-htaccess.googlecode.com/svn-history/r40/trunk/joomla-master-htaccess.txt
im trying to set up a RewriteRule for my k2 module to add item, firebug Net panel points me to http://www.wyzed.net/component/k2/item/add?tmpl=component wich return a Not Found 404 error
item/add?tmpl=component
i have tried with this
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]
still no success i was wondering if someone using joomla and k2 with master .htaccess add figure out how to add a exeption rule to k2 module
i thought i would write my own answer... there is a section called ( advanced server protection ) in the htaccess
to use K2 extention with master .htaccess remove these line
## 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]
and this section
## Referrer filtering for common media files. Replace with your own domain name.
replace the last line with this
RewriteRule \.(jp(e?g|2)?|png|gif|bmp|js|swf|ico)$ - [F]
to allow css from k2 to load..
Enjoy.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.