![]() |
mod rewrite problem - 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: mod rewrite problem (/showthread.php?tid=22574) |
mod rewrite problem - El Forum - 09-14-2009 [eluser]Unknown[/eluser] *POSTED THIS IN Code and Application INSTEAD* *Please remove* I've made a website that works without problems on my localserver, but when I upload the site to my webserver it seems like the mod rewrite doesn't work for some reason. my .htaccess: Code: RewriteEngine on in my main controller i access the uri in this way. (debugging) Code: $id = $this->uri->segment(3); But it doesnt echo anything. If I do an uri->segment(2) it echos "main". If you look at http://www.findareacode.org/index.php/main/main/2xx/ it displays everything correctly. But if you go to the mod rewrite adress: http://www.findareacode.org/2xx/ there is errormessages, and it seems like the variables from the controller hasn't been sent to the view file. (Most probably because the uri->segment(3) is void) Any thoughts? |