Cannot remove index.php - 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: Cannot remove index.php (/showthread.php?tid=54420) |
Cannot remove index.php - El Forum - 09-07-2012 [eluser]Unknown[/eluser] When I try to remove index.php and access controller: mysite.com/admin I keep getting Internal Server Error. .htaccess Code: <IfModule mod_rewrite.c> Code: <Directory /home/mysite.com/public_html/> config Code: $config['index_page'] = ''; Cannot remove index.php - El Forum - 09-08-2012 [eluser]Unknown[/eluser] bump Cannot remove index.php - El Forum - 09-08-2012 [eluser]Captain_Fluffy_Pants[/eluser] yeah mine wouldnt work either Cannot remove index.php - El Forum - 09-08-2012 [eluser]Captain_Fluffy_Pants[/eluser] put this in htaccess Code: RewriteEngine on Cannot remove index.php - El Forum - 09-09-2012 [eluser]Unknown[/eluser] here code for u! That is working with me! <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine on # NOTICE: If you get a 404 play with combinations of the following commented out lines #AllowOverride All #RewriteBase /yourbase RewriteCond $1 !^(index\.php|images|robots\.txt) # Send request via index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d <IfModule mod_php5.c> RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> <IfModule !mod_php5.c> RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule> </IfModule> Ps: write this code into file .htaccess within index.php folder. Cannot remove index.php - El Forum - 09-09-2012 [eluser]solid9[/eluser] Have you checked your error log file? |