Removing index.php in CI 3.0 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Removing index.php in CI 3.0 (/showthread.php?tid=62213) |
Removing index.php in CI 3.0 - solidcodes - 06-19-2015 Hi guys, what is the right codes in .htaccess to remove the index.php in the URL? I have no problem with CI 2.0 but it seems the codes doesn't work in CI 3.0. Any help please. Thanks in advance. RE: Removing index.php in CI 3.0 - JayAdra - 06-19-2015 This works for me: Code: <IfModule mod_rewrite.c> Also check in your application/config/config.php file that the index_page variable is set to blank: Code: /* RE: Removing index.php in CI 3.0 - Sergei - 06-20-2015 RewriteEngine На RewriteCond% {} REQUEST_FILENAME! -f RewriteCond% {} REQUEST_FILENAME! -d RewriteCond $ 1 ^! (Индекс \ .php | роботы \ .txt | карта сайта \ .xml | CSS | JS) RewriteRule ^ (. *) $ Index.php / $ 1 [L] RE: Removing index.php in CI 3.0 - solidcodes - 06-20-2015 @JayAdra Thanks dude it is working. |