2015-10-13 54 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';