当前位置: 动力学知识库 > 问答 > 编程问答 >

apache - Codeigniter 2.1, htaccess - RewriteEngine

问题描述:

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

分享给朋友:
您可能感兴趣的文章:
随机阅读: