我正在做一个2.5版的CodeIgniter项目。我在config.php
中添加了一个url后缀作为$config['url_suffix'] = '.asp';
。当我转到https://localhost:81/project/sample
时,它工作得很好,但是如果我转到https://localhost:81/project/sample.asp
,它会返回The requested resource /project/sample.asp was not found on this server.
,What's When。谢谢。
发布于 2015-10-14 05:17:49
在config.php中,您可以添加任何url_suffix
$config['url_suffix'] = '.asp';
$config['url_suffix'] = '.html';
$config['url_suffix'] = '.php';
当你使用它的时候,它会工作的很好。
仍然失败
转到-> routes.php
$route['project/sample'] = 'project/sample.asp';
https://stackoverflow.com/questions/33109615
复制