Answer the question
In order to leave comments, you need to log in
Why doesn't the upload work on the server?
Installed the kop/yii2-scroll-pager
plugin for endless scrolling of images. It works fine on the locale, I transfer it to the hosting - it does not work. Gives an error message
Failed to load resource: the server responded with a status of 404 (Not Found)
http://site.ru/web/index?page=2&per-page=6
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
</IfModule>
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} ^/.*
RewriteRule ^(.*)$ web/$1 [L]
RewriteCond %{REQUEST_URI} !^/web/
RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ web/index.php
</IfModule>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
'urlManager' => [
'class' => 'yii\web\UrlManager',
'showScriptName' => false,
'enablePrettyUrl' => true,
'rules' => array(
'<alias:index|about|contact>' => 'site/<alias>',
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<controller:\w+>/<action:\w+>' => '<controller>/<action>',
),
],
Answer the question
In order to leave comments, you need to log in
Check if other ajax requests are working, check again the url to which the request goes, maybe it was left from the locale.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question