CI mod rewrite not working (noob question) |
[eluser]chaminda[/eluser]
Guys, I’ve started using CI from yesterday ! So here is the problem. i can’t get rid of the index.php part of the url. *WORKING Quote:http://localhost/LoginSystem/index.php/user *NOT WORKING Quote:http://localhost/LoginSystem/user * My CI deploy path along with the .htacess C:\wamp\www\LoginSystem Here is a screenshot of my folder structure----> View
[eluser]chaminda[/eluser]
Here is the .htaccess file Code: <IfModule mod_rewrite.c>
[eluser]chaminda[/eluser]
*Other things to note 1. “LoadModule rewrite_module modules/mod_rewrite.so” have uncommented in the httpd.conf 2. $config[‘uri_protocol’]= ‘REQUEST_URI’; has been set. 3. Directory have following things in the httpd.conf Code: <Directory /> 4. Here is a part from httpd.conf Code: # DocumentRoot: The directory out of which you will serve your
[eluser]InsiteFX[/eluser]
So post how you did it so others can learn! InsiteFX
[eluser]chaminda[/eluser]
Oh, I actually forgot to mention how did i do that! i had wamp 64bit version (because i am using windows 7 64bit). so what i did was this, 1. uninstall currently installed wamp 64bit (actullay did thi because i messed up my httpd.conf file in apache) 2. Downloaded and installed wamp 32bit. 3. Putting CI files under "c:/wamp/www" directory. 4. create .htaccessfile as mentioned in wiki: mode_rewrite. 5. All working fine ! After that i moved the CI files to a sub directory named as test. so now my CI files path in "c:/wamp/www/test" directory. Then i have edited the .htaccess file's rewrite base. Again, All working fine ![]() |
Welcome Guest, Not a member yet? Register Sign In |