Subdomains for each journal, issues on publishing articles

Hi.
I created subdomains for each journal and solved problems with rewriterules and config.inc.php
Now I got this error when I try to publish a submission, and not only submission.
also this error is appearing when I try to save any data i.e. when I try to CHANGE my journals’ data

An unexpected error occurred. You may have been logged out. Please reload the page and try again.

Ok. I found out that error is related with api.
It’s sending PUT request to http://journal.journal.loc//api/v1/submissions/4/publications/6
the installation location is one for journal.loc and journal.journal.loc. In config.inc.php file I have these lines of code
base_url[journal] = http://journal.journal.loc/ base_url[index] = http://journal.loc/
in .htaccess file
RewriteCond %{SERVER_NAME} ^(www\.)?journal.journal.loc RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !api\/v1\/ RewriteRule ^(.*)$ /index.php/journal/$1 [QSA,L]

the error that jquery producing is
jquery.min.js?v=3.2.1.0:2 PUT http://journal.journal.loc/api/v1/submissions/4/publications/6 405 (Method Not Allowed)