這可能是幾THI NGS。
1(從您的配置文件中刪除索引頁面(應用程序/配置/ config.php文件)
$config['index_page'] = '';
2(你有BASE_URL這樣的:
$config['base_url'] = 'http://yourdomain.com/';
注意/
在最終
3(試試這個的.htaccess:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^LoginTut.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond $1 !^(index\.php|images|table-images|js|robots\.txt|css|captcha)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 index.php
</IfModule>
是'WWW'您的網站的根文件夾? – bottleboot
你的rewritebase是錯誤的,它是相對於文檔根目錄 如果你的doc根目錄是/ var/www/html /你的rewritebase應該是/ site – ikhsan
@ikhsan yes我以同樣的方式,如果不行這是不正確 – bottleboot