|
看了好多以前的帖子,还有用户手册
.htaccess这个文件
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
加上这么一段,可是http://localhost/test/api/还是报错,http://localhost/test/indexphp/api/这样就可以,哪位大神帮帮忙啊
|
|