Help me with this routing issue - 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: Help me with this routing issue (/showthread.php?tid=53551) |
Help me with this routing issue - El Forum - 07-28-2012 [eluser]vipercat[/eluser] When I go here: http://localhost/codeigniter/index.php/gallery the file is there but when I go here: http://localhost/codeigniter/gallery I get this: Not Found The requested URL /codeigniter/gallery was not found on this server. However when I go here: http://localhost/codeigniter/ everything is good. It's the same as http://localhost/codeigniter/index.php/ I put this in my .htacess file in the system folder: RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] I also made sure that in the config.php file that $config['base_url'] = ''; $config['index_page'] = ''; -- Thank you in advance! Help me with this routing issue - El Forum - 07-28-2012 [eluser]PhilTem[/eluser] Try Code: <IfModule mod_rewrite.c> Help me with this routing issue - El Forum - 07-28-2012 [eluser]vipercat[/eluser] Didn't work PhilTem, but thanks for trying. Help me with this routing issue - El Forum - 07-28-2012 [eluser]vipercat[/eluser] I did this in the httpd.conf file but it still doesn't work: http://www.tildemark.com/enable-htaccess-on-apache/ I also did this for the htaccess file and the config.php file: http://www.anmsaiful.net/blog/php/remove-codeigniter-index-php.html but it still doesn't work. please help me. Help me with this routing issue - El Forum - 07-29-2012 [eluser]ojcarga[/eluser] This should work Code: <IfModule mod_rewrite.c> Is the one i'm using with current project i'm working on. Help me with this routing issue - El Forum - 07-29-2012 [eluser]PhilTem[/eluser] If the latter htaccess-code doesn't work: Do you run Windows or Linux or Mac? I experienced that mod-rewrite didn't work properly for xampp on a windows machine. That might be the cause of your problem, too Help me with this routing issue - El Forum - 07-29-2012 [eluser]vipercat[/eluser] hey dude thanks. I just put it in my web hosting and gave up on getting it to work on my local environment. Help me with this routing issue - El Forum - 10-10-2012 [eluser]chien[/eluser] [quote author="PhilTem" date="1343527802"]Try Code: <IfModule mod_rewrite.c> Thanks! |