GetSimple Support Forum
.htaccess deny all in plugins folder - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Developer Discussions (http://get-simple.info/forums/forumdisplay.php?fid=8)
+--- Thread: .htaccess deny all in plugins folder (/showthread.php?tid=478)



.htaccess deny all in plugins folder - internet54 - 2010-03-05

With deny all in my plugins folder, my plugins were not working with the latest beta.
Anyone else with that issue?

Remove .htaccess and it works fine.


.htaccess deny all in plugins folder - ccagle8 - 2010-03-05

maybe it depends on how you are calling the pages from in there. Download my vcard plugin and see how I do it. I save my data files to /data/other/


.htaccess deny all in plugins folder - internet54 - 2010-03-06

^ Right, but for the sake of keeping things easy, I have 2 plugins installed.
I have a gallery which stores all necessary include calls in the plugins/pluginname folder.
Then I have that plugin call the images in /data/gallery/.
Even if everything was stored in the plugin folder, it would not run because the htaccess file does not allow access to the included files in the plugins/pluginname/ folder.


.htaccess deny all in plugins folder - Sanddorn - 2010-03-21

/data is nice for saving data, but where to place images, .js and .css Files that i need for my plugin? /theme/plugins?


.htaccess deny all in plugins folder - Zegnåt - 2010-03-21

The argument is that /data/ is not the best place to write things as plugin settings, because it might get lost between updates. So the idea is to keep everything within /plugins/.

Images might be a whole different issue. It might be right to put those in a seperate folder per theme (/theme/Default_Simple/my_plugin_name/image.png &c), if you want your plugin to be customised depending on a theme. If you always want it to be the same, I’d go for putting all those files in /plugins/ (in a subfolder of course) as well.


.htaccess deny all in plugins folder - Sanddorn - 2010-03-21

But with "deny all" the browser can not load stuff from /plugins/myplugin. I need an "allow all" place for theming my plugin and storing JavaScript files. confused


.htaccess deny all in plugins folder - Zegnåt - 2010-03-21

Please search the forums a bit, you’ll find there has been a discussion going on about whitelisting files in /plugins/. I think that topic will get you up to speed.


.htaccess deny all in plugins folder - nexflo - 2010-03-21

easy solution is simple putting another htaccess in the plugin directory of your plugin...

i.e.

if your plugin is in /plugins/plugin1.php

simple add another folder plugin1 and drop an .htaccess with
Allow from all

Important: Dont change the .htaccess in the root plugins folder...


.htaccess deny all in plugins folder - Sanddorn - 2010-03-22

Thanks, that works.