![]() |
.htaccess (to get rid of index.php in URI) and subfolding issue (retard in the house) - 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: .htaccess (to get rid of index.php in URI) and subfolding issue (retard in the house) (/showthread.php?tid=9185) |
.htaccess (to get rid of index.php in URI) and subfolding issue (retard in the house) - El Forum - 06-16-2008 [eluser]Dagobert Renouf[/eluser] Hi guys, I'm sure you will enlight me within the few minutes with theses 2 simple issues, so let's do it : 1) I set up the .htacces file to get ird of index.php in the URI in my system/application folder, but it doesn't seem to do anything (I'm in localhost, could it be the problem ?). Code: RewriteEngine on 2) I'm creating my admin zone and the subfolding is tricking me: - here's my tree to access the post.php controller : \system\application\controllers\admin\blog\post.php - here's the uri I'm using : index.php/admin/blog/post/ but i have a 404 :-(. Hope you gurus would be able to help me out. .htaccess (to get rid of index.php in URI) and subfolding issue (retard in the house) - El Forum - 06-16-2008 [eluser]xwero[/eluser] 1) did you remove the index.php value in the config file's index_page setting? 2) the url you should be using is site.com/admin/blog/post (remove the index.php from the url) .htaccess (to get rid of index.php in URI) and subfolding issue (retard in the house) - El Forum - 06-16-2008 [eluser]Dagobert Renouf[/eluser] 1) yes I did :-s 2) doesn't work either. .htaccess (to get rid of index.php in URI) and subfolding issue (retard in the house) - El Forum - 06-16-2008 [eluser]Dagobert Renouf[/eluser] For the last hour I've been trying to figure this out. I'm using WAMP server and I already made sure the url_rewritting modules and parameters were okay. I tried using the second method of the wiki for .htaccess file see this page but it doesn't work either. Here's my new .htaccess file : Code: <IfModule mod_rewrite.c> this file is located in my ci root folder, still i have a 404 error message when trying to load /blog/ for example. .htaccess (to get rid of index.php in URI) and subfolding issue (retard in the house) - El Forum - 07-21-2008 [eluser]happyd119[/eluser] I had the same problem before but it went away after I changed the RewriteBase to "/". Hope this helps. |