2015-10-13 57 views
0

我正在使用CodeIgniter项目版本2.5。我在config.php中添加一个url后缀。当我去https://localhost:81/project/sample它工作正常,但如果我去https://localhost:81/project/sample.asp它返回The requested resource /project/sample.asp was not found on this server. 这里有什么问题。谢谢。CodeIgniter url_suffix问题

回答

1

在config.php文件,你可以添加任何的url_suffix

$config['url_suffix'] = '.asp'; 
$config['url_suffix'] = '.html'; 
$config['url_suffix'] = '.php'; 

当您使用它这将正常工作。

依然未能

转到 - >routes.php

$route['project/sample'] = 'project/sample.asp';