• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot Read default controller

#1
Hi,
i'm having error loading my default controller. 
tried those .htaccess file but no luck.

folder structure:
htdocs
>codeigniter

www.mywebsite.com/codeigniter
it gives me 404 error
but when i put
www.mywebsite.com/codeigniter/welcome
it works.

my .htaccess
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L] 
</IfModule>

config.php
Code:
$config['base_url'] = 'http://www.mywebsite.com/codeigniter/';
$config['index_page'] = '';
Reply

#2
Hey,

Did you put the .htaccess in the codeigniter folder?
And maybe you have to change the line with 'index.php/$1' into

Code:
 RewriteRule ^(.*)$ /codeigniter/index.php?/$1 [L]

Hope this helps!

-Roger
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.