我该如何删除"index.php"
在 codeigniter 中心某处的每条路径中都突出?
我想要干净的非index.php-fied URLs
?
如果您使用 Apache,请将 .htaccess 文件放入您的 Web 根目录中,其中包含以下内容:
RewriteEngine on
RewriteCond $1 !^(index\.php|[Javascript / CSS / Image root Folder name(s)]|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
另一个好的版本位于这里:
http://snipplr.com/view/5966/codeigniter-htaccess/ http://snipplr.com/view/5966/codeigniter-htaccess/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)