Я загрузил свое веб-приложение в приложение, оно постоянно показывает 404. Я пробовал эти конфиги.Приложение Codeigniter не работает на движке приложения, показывая 404
$config['base_url'] = '';
$config['index_page'] = '';
| 'AUTO'
По умолчанию - автообнаружение | 'PATH_INFO'
Использует PATH_INFO | 'QUERY_STRING'
Использует QUERY_STRING | 'REQUEST_URI'
Использует REQUEST_URI | 'ORIG_PATH_INFO'
Использует ORIG_PATH_INFO
Я пробовал все варианты.
$config['uri_protocol'] = 'AUTO';
$route['default_controller'] = "home";
$route['404_override'] = '';
мой файл .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
мой app.yaml
application: xxxxxxxx
version: x
runtime: php
api_version: 1
threadsafe: false
handlers:
- url: /.*
script: index.php
ли работа без .htaccess и с помощью index.php в ваших URL-адресов? –
Я этого не пробовал. Я не хочу index.php в моих URLs – Desire
спросил я, чтобы посмотреть, если проблема заключается в HTAccess, или в настройках сервера –