Welcome Guest, Not a member yet? Register   Sign In
Images, Styles, Scripts not view
#1

[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.
#2

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

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

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

[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?




Theme © iAndrew 2016 - Forum software by © MyBB