mode rewrite |
[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']=''
[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)
[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-gui.../urls.html "Removing the index.php file"
[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
[eluser]danmontgomery[/eluser]
.htaccess should be in the same directory as index.php
[eluser]kosaidpo[/eluser]
which directory the one whre's htdocs or the appache ?? or CI ??
[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
[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 |
Welcome Guest, Not a member yet? Register Sign In |