CodeIgniter Forums
Problem with viewing the page on 2nd URI segment - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problem with viewing the page on 2nd URI segment (/showthread.php?tid=47496)



Problem with viewing the page on 2nd URI segment - El Forum - 12-11-2011

[eluser]Unknown[/eluser]
Hi there!

I have a problem with the display of my view pages in my CI application. Whenever I anchor or go to second URI segment the page doesn't seem to load the images and css files.

For example, I will navigate to http://localhost/pbe/controller/add. The page will not load in the correct format it should be. It seems that I have a problem with my .htaccess file

Here is my .htaccess file

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

Here is the incomplete directory listing of my website:

the asset contains the css and the images

pbe/application
pbe/application/config
pbe/application/controllers
pbe/application/models
pbe/application/views
pbe/assets/css
pbe/assets/images
pbe/assets/css
pbe/system

Thanks!