试图找出如何删除IP是预先固定到我的URL一旦我离开主页。
http://www.clpromotions.co.uk/http://217.199.187.59/clpromotions.co.uk/index.php/about-us尝试了所有的东西——也许是我错过了一些简单的东西。该站点最近已迁移....
使用相关url路径并在head
中添加base
<base href="http://www.clpromotions.co.uk/" />
<a href="clpromotions.co.uk/index.php/calendars">Promotional Calendars 2016</a>
或创建constant
基础url并在每个链接上附加
Const BASE_URL = 'http://www.clpromotions.co.uk';
<a href="<?=BASE_URL?>/index.php/calendars">Promotional Calendars 2016</a>
或者您可以使用/
<a href="/index.php/calendars">Promotional Calendars 2016</a>
非常感谢。
我在
下的配置中发现了这个问题$config['root_path'] =
谢谢。