0
votes

I am using a tinyMCE plugin for uploading an image into tinyMCE http://justboil.me/. This plugin is developed using codeignitor.

I just tried implementing it with a test php file and its working fine but when I upload the code into cakephp ie in the app/webroot/js/editor/tinymce.

The error that I get is URL NOT FOUND http://mysite.com/js/editor/tinymce/plugins/jbimages/ci/index.php/upload/english

The above url is the same url(the relative URL) that works from my localhost when used with a simple php file.

I think this can be an issue relating the htaccess file in the webroot folder of cakephp.

This is my htacess code

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

Is there a way to solve this issue?

2
What is the correct URL for image uploader? - anubhava
mysite.com/js/editor/tinymce/plugins/jbimages/ci/index.php/… I think this is the correct url because localhost/tinymce/plugins/jbimages/ci/index.php/upload/english works fine for me in the local server. - user2742122

2 Answers

0
votes

Try this edit to your .htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-l
    RewriteRule .* index.php [L]
</IfModule>
0
votes

Can you try this code:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !tinymce index.php [L,NC]