CodeIgniter Forums
Images, Styles, Scripts not view - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Images, Styles, Scripts not view (/thread-24955.html)



Images, Styles, Scripts not view - El Forum - 11-25-2009

[eluser]Sathishkumar[/eluser]
Hello all,
I'm newbie in CI. Now i start my project CI.

If i put this .htaccess code in my server - images,styles,scripts not view.

Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|javascript|style|images|robots\.txt)
RewriteRule ^(.*)$ ./index.php/$1 [L]

If i remove this .htaccess file, show all things but URL show's index.php ie. http://localhost/index.php/filename
there any problem in my .htaccess or anything.
what can i do. please help me.


Regards,
Sathish.


Images, Styles, Scripts not view - El Forum - 11-26-2009

[eluser]rogierb[/eluser]
Try something like:

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



Images, Styles, Scripts not view - El Forum - 11-27-2009

[eluser]Sathishkumar[/eluser]
Its also not working ....
Please anybody help me....


Images, Styles, Scripts not view - El Forum - 11-27-2009

[eluser]rogierb[/eluser]
You might get more response if you include the error message and describe what is not working.
Also, did you install CI in the root or in a subdir?