• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mod Rewrite not working for me

#2
[eluser]libnac[/eluser]
You can access to this file because all the requests are redirected to index.php by default and try to execute this function on your main controller class. When codeigniter receives http://12.34.56.78/images/smiley.gif, it try to execute function images with smiley.gif and how this function doesn't exists you can obtain this image.

This is why you must create an .htaccess file on the www directory, like this:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ index.php [L]
RewriteCond $1 !^(index.php|media|img|javascript|css|robots.txt|favicon.ico|images)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

Then you can access to all the files listed between brackets.

I hope this works for you


Messages In This Thread
Mod Rewrite not working for me - by El Forum - 07-30-2008, 06:31 PM
Mod Rewrite not working for me - by El Forum - 07-31-2008, 01:52 AM
Mod Rewrite not working for me - by El Forum - 07-31-2008, 10:44 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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