google-code-export / ci-cms

Automatically exported from code.google.com/p/ci-cms
Other
0 stars 0 forks source link

I can't access to admin page,or site page! #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
During the pre-release, please update your files with the latest svn before
reporting a defect
-----

What steps will reproduce the problem?
1. Some error default for TEXT type in mysql
2. I can't access to admin page,or site page!
I have config : 
$config['base_url'] = "http://localhost/ci-cms/";
$config['index_page'] = "index.php";
3. Rewrite not work, i have enable mod_write in apache.

Please help me.
Thanks.

Original issue reported on code.google.com by mr.thachvinh@gmail.com on 1 Nov 2009 at 1:03

GoogleCodeExporter commented 9 years ago
I think the error is just because of URL rewritting.

So to fix it, you just need to add the directory name in .htaccess

for http://localhost/ci-cms

You add the ci-cms in .htaccess
{{{
RewriteEngine on
RewriteCond $1 !^(index\.php|application|media|robots\.txt)
RewriteRule ^(.*)$ /ci-cms/index.php/$1 [L]
}}}

Original comment by heriniai...@gmail.com on 24 Dec 2009 at 7:53