Javascript 404在服务器上上载时出现错误codeigniter

Javascript 404在服务器上上载时出现错误codeigniter,javascript,php,.htaccess,codeigniter,Javascript,Php,.htaccess,Codeigniter,当我点击网址。它给我404错误和 当我击中它的工作罚款。我的控制器名称和文件名是大写字母,下面是我的htaccess 请告诉我哪里出了问题。 RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/system.* RewriteRule ^(.*)$ index.php?/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d R

当我点击网址。它给我404错误和

当我击中它的工作罚款。我的控制器名称和文件名是大写字母,下面是我的htaccess

请告诉我哪里出了问题。

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]

提前感谢。

我已从该链接获得解决方案。在那里你可以找到类似问题的解决方案

希望,这将有助于修复您的404错误


我已从该链接获得解决方案。在那里你可以找到类似问题的解决方案

希望,这将有助于修复您的404错误


你能试试这个吗

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /folder/index.php/$1 [L]

你能试试这个吗

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /folder/index.php/$1 [L]
您可以使用它。
在config.php中

$config['base_url'] = 'your base url';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
$config['url_suffix'] = ''; 
in.htaccess(这应该放在应用程序文件夹的外侧)

您可以使用它。
在config.php中

$config['base_url'] = 'your base url';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
$config['url_suffix'] = ''; 
in.htaccess(这应该放在应用程序文件夹的外侧)

使用“vhosts.conf”文件夹。URL可以区分大小写。位置:/var/www/vhosts/domain.com/conf/vhosts.conf

重新启动发动机 重写映射小写int:tolower 重写第二个$1[A-Z] 使用“vhosts.conf”文件夹重写规则^/(.*)$/${小写:$1}[R=301,L]

。URL可以区分大小写。位置:/var/www/vhosts/domain.com/conf/vhosts.conf

重新启动发动机 重写映射小写int:tolower 重写第二个$1[A-Z]
重写规则^/(.*)$/${小写:$1}[R=301,L]

您必须在配置文件夹中的路由页面上为此创建路由。前-

 $route["welcome-page"] = 'Welcome';
把你的页面称为-


希望这段代码对您有所帮助。

您必须在配置文件夹中的路由页面上为此创建路由。前-

 $route["welcome-page"] = 'Welcome';
把你的页面称为-


希望这段代码对您有所帮助。

Hi在本地工作时也遇到了同样的问题,我将其上传到amazon Ec2服务器。
我得到的解决方案是:使所有控制器和模式

Hi在本地工作时出现相同的问题,我将其上传到amazon Ec2服务器。
我得到的解决方案是:让我这边的所有控制器和模式

都显示404状态。这些是真正的链接吗?在我这边,两个链接都给出了404状态。这些是真正的链接吗?解决方案,因为我的链接使用大写字母。解决方案,因为我的链接使用大写字母。