将网站域调用重定向到 Codeigniter 文件夹
Redirecting the website domain call to Codeigniter folder
我有一个域,其中有一个名为 main 的子目录,其中包括 Codeigniter 文件和 index.php
.
如何从我的 public_html
文件夹中的 default.php
重定向到 Codigniter/index.php?
谢谢大家
this image for detail my case
只需将此代码添加到您的 default.php 文件中
<?php
header('Location: /main/index.php');
?>
我有一个域,其中有一个名为 main 的子目录,其中包括 Codeigniter 文件和 index.php
.
如何从我的 public_html
文件夹中的 default.php
重定向到 Codigniter/index.php?
谢谢大家
this image for detail my case
只需将此代码添加到您的 default.php 文件中
<?php
header('Location: /main/index.php');
?>