I'm trying to install the JustBoil.me image upload plugin for TinyMCE HTML editor as part of a CakePHP application.
However, when I try to upload an image it gets nowhere. Investigation reveals the following two requests are 404ing:
http://my.sites/myapp/js/tinymce/plugins/jbimages/ci/index.php/blank http://my.sites/myapp/js/tinymce/plugins/jbimages/ci/index.php/upload/english
Sure enough, when I try to access http://my.sites/myapp/js/tinymce/plugins/jbimages/ci/index.php/blank in a browser I get a 404 Page Not Found. However, I get a different result from expanding this url to http://my.sites/myapp/app/webroot/js/tinymce/plugins/jbimages/ci/index.php/blank.
My .htaccess files are standard for CakePHP (I think), i.e. in myapp:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
in app much the same (but for webroot instead of app/webroot) and then in webroot:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
Is there something simple I can do to make sure that http://my.sites/myapp/js/tinymce/plugins/jbimages/ci/index.php doesn't flake out due to (?) the lack of /app/webroot/ in the path?