about user friendly url configuration in url on local web server. - 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: about user friendly url configuration in url on local web server. (/showthread.php?tid=24213) |
about user friendly url configuration in url on local web server. - El Forum - 11-03-2009 [eluser]hardik[/eluser] hi, i m using windows xp and xampp for my local system. and i m having trouble configuring user friendly url in codeigniter. i installed the codeigniter and i checked everything it worked fine. i created ci folder in web root of my server. so i can access it using Code: http://server/ci/ i created other controller helloworld for just checked and run using this. Code: http://server/ci/index.php/helloworld but then i thought making it userfriendly would be better i wanted to make it like Code: http://server/ci/helloworld Code: RewriteEngine on and put it in the ci directory where codeigniter is installed and then i set base url from config file to Code: $config['base_url'] = "http://server/ci/"; and then i try to run Code: http://server/ci/helloworld i try to change directory of htaccess to system directory of codeigniter. so i put htaccess file into root>ci>system but still it did not work. i try to check weather mod_rewrite is enabled or not but it also enabled and working in other site. i believe i am missing something to be configure. so can anyone help me with the issue ? about user friendly url configuration in url on local web server. - El Forum - 11-03-2009 [eluser]rogierb[/eluser] You have to specify the RewriteBase if you install CI in a subdirecory. Try the following .htaccess Code: RewriteEngine On about user friendly url configuration in url on local web server. - El Forum - 11-03-2009 [eluser]hardik[/eluser] thanks a ton for the answer.. problem solved. |