Simply can't get .htacces to work.. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Simply can't get .htacces to work.. (/showthread.php?tid=9924) |
Simply can't get .htacces to work.. - El Forum - 07-13-2008 [eluser]Buch[/eluser] Heya, I've been trying every .htacces example availible on the forums and tried them all but still I can't get my images to work but my css on the other hand works rather fine (some small problem with body). My build. Code: - Ci Folder /assets/images/imagehere.png And exactly the same with my Css but my css work partially when linking this way. /assets/css/stylehere.css The current .htaccess file I ended up with so my http://ci.mysite.com/ works without errors displaying is --> Code: <IfModule mod_rewrite.c> But I really don't get why this should be such a big problem I just want it to work And I don't want to end up hard coding all the links :/ Best Regards Kasper Simply can't get .htacces to work.. - El Forum - 07-13-2008 [eluser]Spiked[/eluser] Use something like this: Code: RewriteEngine on Simply can't get .htacces to work.. - El Forum - 07-13-2008 [eluser]Buch[/eluser] Hmm works now but then I got following errors Severity: Notice Message: Undefined offset: 0 Filename: libraries/Router.php Line Number: 190 Line Number: 196 Line Number: 199 And when looking at theese lines I find nothing special Its just the original one. Simply can't get .htacces to work.. - El Forum - 07-18-2008 [eluser]thesf[/eluser] Having those exact same errors Buch. Any luck resolving this? EDIT: managed to get it working properly with no errors by using "Solution 2" from http://codeigniter.com/wiki/Dreamhost_.htaccess/ Simply can't get .htacces to work.. - El Forum - 07-19-2008 [eluser]Buch[/eluser] Ahhh great nice thanks Simply can't get .htacces to work.. - El Forum - 01-21-2009 [eluser]Unknown[/eluser] Hi, I also had the problem of index.php on local server but being required on real-world hosting. "Solution 2" worked flawlessly. Thanks thesf! Simply can't get .htacces to work.. - El Forum - 06-05-2010 [eluser]spidy[/eluser] I am having htaccess problem too. I tried all the tutorial from codeingiter nothing is work. I am running apache2 in ubuntu 10.04. the rewrite mode is already enabled. Here is the url that I test. ------works--------- http://192.168.1.1/ http://192.168.1.1/index.php http://192.168.1.1/index.php/blog http://192.168.1.1/index.php/blog/comment ------Fail to work------- http://192.168.1.1/blog http://192.168.1.1/blog/comment error that I get is error 404 page not found the default error 404 from browser not from codeigniter Greatly appreciate your help. |