我笨项目没有工作我codeiginter项目运作良好,在本地主机(我使用Linux的交友)没有的index.php在网上
https://localhost/project/profile
但没有链接的index.php它不联机工作
https://domainname.in/index.php/profile
.htaccess文件
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
我route.php文件
$route['default_controller'] = "pages/home";
$route['404_override'] = '';
$route['pages/profile'] = "pages/profile";
$route['creators'] = "pages/userList";
$route['auth/logout'] = "auth/logout";
$route['auth'] = "auth/logout";
$route['auth/login'] = "auth/login";
$route['auth/register'] = "auth/register";
$route['pages/post'] = "pages/post";
$route[$username.'/about'] = "pages/menus/about";
$route[$username.'/credibility'] = "pages/menus/credibility";
$route[$username.'/release'] = "pages/menus/release";
$route[$username.'/jobs'] = "pages/menus/jobs";
$route[$username] = "pages/userList/userview/$1";
的可能的复制[Codeiginter产品中的LocalServer工作良好,没有的index.php,但在服务器不工作(http://stackoverflow.com/questions/36906066/codeiginter-product-worked-well-in-localserver -without-index-php-but-not-worked) – shruthi