![]() |
mode rewrite - 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: mode rewrite (/showthread.php?tid=28850) Pages:
1
2
|
mode rewrite - El Forum - 03-23-2010 [eluser]kosaidpo[/eluser] hey everyone i've take off the index.php from the config file and from wht i kno activated the rewrite mode by decommentin the line Code: LoadModule rewrite_module modules/mod_rewrite.so Code: <Directory /> but i have this on my file Code: <Directory /> and fom my view i call this methode like this Code: anchor('forum/showthread',some_var_here) ; and i dont why it says cannot find the page Error 404 i dont kno how to make this work any help will be much appreciated PS:on my config file $config['index_page']='' mode rewrite - El Forum - 03-23-2010 [eluser]danmontgomery[/eluser] Hi Kosaidpo, Since you uncommented the mod_rewrite line, have you restarted apache? Also, when you say you get a 404, is it the apache 404, or codeigniter 404 message (codeigniter's looks like this: http://dl.dropbox.com/u/4748759/ci404.png) mode rewrite - El Forum - 03-23-2010 [eluser]kosaidpo[/eluser] hi and tnx fo replyin no i mean an apache one mode rewrite - El Forum - 03-23-2010 [eluser]danmontgomery[/eluser] [quote author="noctrum" date="1269385951"]have you restarted apache?[/quote] You also need to add the rewrite code to .htaccess, have you done that? http://ellislab.com/codeigniter/user-guide/general/urls.html "Removing the index.php file" mode rewrite - El Forum - 03-23-2010 [eluser]kosaidpo[/eluser] yes i've restated it tnx im on local where i can put this .htacces file PS:im usin lampp tnx bro mode rewrite - El Forum - 03-23-2010 [eluser]danmontgomery[/eluser] .htaccess should be in the same directory as index.php mode rewrite - El Forum - 03-23-2010 [eluser]kosaidpo[/eluser] which directory the one whre's htdocs or the appache ?? or CI ?? mode rewrite - El Forum - 03-23-2010 [eluser]danmontgomery[/eluser] CodeIgniter's index.php mode rewrite - El Forum - 03-23-2010 [eluser]kosaidpo[/eluser] yeah i put it at that directory you told me with user guid and stuff but it takes me to localhost/xampp and it shows me an error message sayin if i remove my coockis it might works mode rewrite - El Forum - 03-24-2010 [eluser]kosaidpo[/eluser] hey i ve read on thewiki this tuto but i stil cannot redirect anythin can put on my http.conf to make sure if i have in the corecte way ?? tnx |