yii2-tinymce:在服务器上映像上面临问题

时间:2015-12-16 10:20:31

标签: image tinymce yii2 image-uploading

它正在使用localhost。

但是当上传到服务器上并点击上传图标时,它会显示错误的上传对话框: -

NetworkError:404 Not Found - http://example.com/admin/assets/5802b69e/plugins/jbimages/ci/index.php?blank

点击浏览图标后,它也显示错误: “NetworkError:404 Not Found - http://example.com/admin/assets/5802b69e/plugins/jbimages/ci/index.php?upload/english

enter image description here

上的

.htaccess文件

 Options +Indexes
 Options +FollowSymLinks
 RewriteEngine On


 <IfModule mod_rewrite.c> 

 RewriteCond %{REQUEST_URI} ^/(admin) 
 RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L]
 RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L]


 RewriteCond %{REQUEST_URI} !^/backend/web/(assets|css)/ 
 RewriteCond %{REQUEST_URI} ^/(admin)  
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^.*$ backend/web/index.php [L]


 RewriteRule ^$ frontend/web/
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)$ frontend/web/$1


 </IfModule>

jbimage插件设置代码:vendor / tinymce / tinymce / plugins / jbimages / config.php

 $config['img_path'] = '/img'; 
 $config['upload_path'] = '/home/example/public_html/frontend/web' .  $config['img_path'];

0 个答案:

没有答案