links not working again!!!1 - 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: links not working again!!!1 (/showthread.php?tid=18465) |
links not working again!!!1 - El Forum - 05-07-2009 [eluser]learning_php[/eluser] Hi, I posted this a few days ago and i thought that i had fixed the error but it is back againhttp://ellislab.com/forums/viewthread/113474/ The home page opens ok but none of the links work?www.wesayido.co.uk links not working again!!!1 - El Forum - 05-07-2009 [eluser]Dam1an[/eluser] It works if you put the index.php into the URL (although it breaks the css) Which leads me to beleive it must be something with your htaccess and rewrite rule links not working again!!!1 - El Forum - 05-07-2009 [eluser]Evil Wizard[/eluser] Your links do kind of work, it's to do with the routing of your requests, e.g. /info really is http://www.wesayido.co.uk/index.php?info so if you added to the bottom of your .htaccess file in the document root Code: RewriteCond %{REQUEST_FILENAME} !-f this just checks to see that the URL requested does not exist, is not a directory and forward the request to index.php with the trailing query string. Also remember that filenames and URL's are case sensative but php class and method names are not links not working again!!!1 - El Forum - 05-07-2009 [eluser]learning_php[/eluser] This is my .htaccess file Code: <IfModule mod_rewrite.c> |