[eluser]iFadey[/eluser]
Recently I did a project using CI. It's almost completed. While testing it in different browsers I found that IE is not loading images when a page's URL contain controller method name. Example:
Code:
http://localhost/my_project/controller/method
(not fetching images)
But if any page that's displayed without method name fetch images. Example
Code:
http://localhost/my_project/controller
(works fine)
When I checked the image paths of page when opened in IE, it looks like this:
Code:
http://localhost/my_project/controller/method/images/subfolder/img.jpg
Now obviously this is wrong because the correct path is:
Code:
http://localhost/my_project/controller/images/subfolder/img.jpg
The weird thing is that it's happening only in IE
I don't understand htaccess syntax that much. I am new to it so maybe I am doing some mistake there. Here's my .htaccess file:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|styles|scripts|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
Also all of my images are in sub folders present in "images" folder which is in root directory