Mysql 错误404使用XAMPP找不到页面

Mysql 错误404使用XAMPP找不到页面,mysql,apache,codeigniter,xampp,Mysql,Apache,Codeigniter,Xampp,我正在尝试使用XAMPP在域上托管我的网站https://localhost/media.einnovation.com 但是得到下面的错误 我甚至尝试过进入我的本地主机的索引,并以这种方式访问该网站,但页面仍然无法加载 我的网站是使用CodeIgniter构建的,有一个.htaccess文件,如下所示 #RewriteEngine on #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #Rew

我正在尝试使用XAMPP在域上托管我的网站https://localhost/media.einnovation.com 但是得到下面的错误

我甚至尝试过进入我的本地主机的索引,并以这种方式访问该网站,但页面仍然无法加载

我的网站是使用CodeIgniter构建的,有一个.htaccess文件,如下所示

#RewriteEngine on
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule .* index.php/$0 [PT, L]
#RewriteEngine On
#RewriteCond %{HTTP_HOST} !^www\. [NC]
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#<IfModule mod_rewrite.c>
#    RewriteEngine On
#    RewriteCond %{REQUEST_FILENAME} !-f
#    RewriteCond %{REQUEST_FILENAME} !-d
#    RewriteRule ^(.*)$ index.php/$1 [L] 
#</IfModule>

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]


# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php72” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

有人能确定问题出在哪里吗?

如果您希望更改站点的基本URLhttps://localhost/media.einnovation.com 您需要配置基本URL $config['base_url']=”https://localhost/media.einnovation.com";


您还可以在routes.php文件中创建从media.einnovation.com到所需控制器的不同路径。

是否设置了
$config['base\u url']=”https://localhost/media.einnovation.com";
@KUMAR我可以复制您的建议的XAMPP文件和文件夹位置的名称是什么?在
config->config.php
@KUMAR中,我的$config['base\u url']=被设置为$config['base\u url']='http://media.einnovention.com'; 我甚至把它改成$config['base_url']='https://media.einnovention.com'; 我现在收到错误响应媒体。找不到einnovation.com的服务器IP地址。
$config['base_url'] = 'http://media.einnovention.com';

/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = '';

/*
|--------------------------------------------------------------------------
| URI PROTOCOL
|--------------------------------------------------------------------------
|
| This item determines which server global should be used to retrieve the
| URI string.  The default setting of 'REQUEST_URI' works for most servers.
| If your links do not seem to work, try one of the other delicious flavors:
|
| 'REQUEST_URI'    Uses $_SERVER['REQUEST_URI']
| 'QUERY_STRING'   Uses $_SERVER['QUERY_STRING']
| 'PATH_INFO'      Uses $_SERVER['PATH_INFO']
|
| WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
*/
$config['uri_protocol'] = 'REQUEST_URI';

/*
|--------------------------------------------------------------------------
| URL suffix
|--------------------------------------------------------------------------
|
| This option allows you to add a suffix to all URLs generated by CodeIgniter.
| For more information please see the user guide:
|
| https://codeigniter.com/user_guide/general/urls.html
*/
$config['url_suffix'] = '';