![]() |
css, js and images path problem - 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: css, js and images path problem (/showthread.php?tid=42072) |
css, js and images path problem - El Forum - 05-25-2011 [eluser]veledrom[/eluser] Hi, My directory structure is this: + index.php + license.txt + application + system + user_guide - web - css - images - js When I run my website on my local computer with WAMP, all fine but when I run it on my web hosting space (LINUX) no css, js and images are picked up. I manually type the full URL to these 3 folders and the files inside, I get "500 Internal Server Error". Why do you think this is happening? Thanks css, js and images path problem - El Forum - 05-25-2011 [eluser]mak.gnu[/eluser] Create three constants all three and give like this Code: define('CSS',base_url().'web/css/'); and then use them in view. css, js and images path problem - El Forum - 05-25-2011 [eluser]veledrom[/eluser] Content of .htaccess solved the problem. RewriteEngine on RewriteCond $1 !^(index\.php|web|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] |