Tag Archives: remove index.php from url

Remove “index.php” in codeigniter’s Url path

Do you want to replace http://localhost/code/index.php/welcome/ to http://localhost/code/welcome/ So simple. Follow the rules below. Create  .htaccess file in root directory. ‘code’ is root directory gedit code/.htaccess And then add the below rules to that. RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond … Continue reading

Posted in Web | Tagged , , , , , , , , | Leave a comment