将xampp localhost更改为domain.com后出现Javascript url错误?

将xampp localhost更改为domain.com后出现Javascript url错误?,javascript,php,xampp,Javascript,Php,Xampp,我已经将localhost改为example.com,但是当我使用example.com时,我得到了一些错误,但是使用localhost是可以的。javascript中的错误 错误: url:'<?php echo base_url(); ?>/index.php/show1/show1' // If using example.com url:'<?php echo base_url(); ?>/index.php/show1/show1' // Working in

我已经将localhost改为example.com,但是当我使用example.com时,我得到了一些错误,但是使用localhost是可以的。javascript中的错误

错误:

url:'<?php echo base_url(); ?>/index.php/show1/show1' // If using example.com

url:'<?php echo base_url(); ?>/index.php/show1/show1' // Working in localhost/example
url:'/index.php/show1/show1'//如果使用example.com
url:'/index.php/show1/show1'//在本地主机中工作/示例
当我删除index.php时,它可以工作:

url:'<?php echo base_url(); ?>/show1/show1' // working in example.com
url:'/show1/show1'//在example.com中工作
我正在使用codeignitier。

有谁能帮助我,如何在javascript或advice中不删除index.php的情况下使其工作?

您会遇到什么错误?在
index.php
中,只需检查您是否有死链接或非相对文件路径。您会遇到什么错误?在
index.php
中,只需检查您是否有死链接或非相对文件路径