问题描述:

This question already has an answer here:

  • CodeIgniter htaccess and URL rewrite issues

    7 answers

网友答案:

I had issues with GoDaddy as well I used:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]

Which worked fine for me, note that I also left:

$config['index_page'] = 'index.php';

In /application/config.php

相关阅读:
Top