Help:edit mode file manager don`t work

Permalink
Hi, can somebody help me with this problem. I install c5 in a subdirectory and with htaccess put in the root and inside the c5 folder all work. The problems begins in edit mode. I can`t save data for example in page attributes and can`t upload images in file manager, maybe it`s a problem with the request.php I implement the how to Hide the subdirectory URL with some modifications.

Root htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Add trailing slash if path does not contain a period or end with a slash
RewriteCond %{REQUEST_URI} !(\.|/$)
RewriteRule (.*) http://www.site.com/$1/ [R=301,L]
#Changehttp://example.com tohttp://www.site.com (Optional)
RewriteCond %{HTTP_HOST} ^site.com$
RewriteRule ^/?(.*)$ http://www.site.com/$1 [R=301,L]
# Rewriteshttp://www.example.com/ tohttp://www.example.com/c5 except for directories we want normal access to
RewriteCond %{REQUEST_URI} !^/c5
# exclude other sub-directories if necessary
RewriteCond %{REQUEST_URI} !^/testphp
RewriteCond %{REQUEST_URI} !^/plesk-stat
RewriteRule ^(.*)$ c5/$1 [L]



and htaccess inside c5:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /c5
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>


Then i override concrete/core/libraries/request like in the how to, first i put a new DIR in config site,
All work but not in edit mode.

Can somebody tell me how to resolve this.Thanks