Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to remove index.php in codeigniter 3 route

step 1: create .htaccess file under root directory

step 2: on .htaccess file add this 

RewriteEngine on
RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
  
step 3: on config file change this  $config['index_page'] = 'index_page'; 
		to $config['index_page'] = ''; 

  
Comment

PREVIOUS NEXT
Code Example
Php :: laravel set innodb scema builder 
Php :: pass messages laravel 
Php :: breaks the collection into multiple smaller collections Laravel 
Php :: cpt change link 
Php :: Protect Your Site from Malicious Requests 
Php :: limit query laravel 
Php :: how to change php to html 
Php :: how to select max write textarea value in php 
Php :: Primary Termmaatwebsite/excel store s3 
Php :: eventon php code 
Php :: Crear un componente livewire 
Php :: random record get with pagination in karavel 8 
Php :: Change Initial Country For Caldera Forms Phone Fields 
Php :: Adding Conditional Classes to Menu Items 
Php :: markdown mail html rendering laravel 
Php :: PHP strpbrk — Search a string for any of a set of characters 
Php :: Agregar clases de rol al body en WordPress 
Php :: php send sms for aws sns sdk 2 
Php :: Anzeige von Custom Post Types in den Kategorien und Tags-1 
Php :: wp retrieve acf by category name 
Php :: phplinit config 
Php :: php spellchecker 
Php :: First-class Callable Syntax - PHP 8.1 
Php :: wordpress get posts by multiple authors 
Php :: Comment supprimer les avis sur les produits de votre boutique WooCommerce 
Php :: model coomad laravel 
Php :: implode (PHP 4, PHP 5, PHP 7, PHP 8) implode — Join array elements with a string 
Php :: send parameter to function in php can null 
Php :: Dein Benutzer-Profil um weitere Social Media Accounts erweitern 
Php :: symfony request 
ADD CONTENT
Topic
Content
Source link
Name
4+4 =