Search
 
SCRIPT & CODE EXAMPLE
 

PHP

how to remove index.php in codeigniter

<?php 
#By default, the index.php file will be included in your URLs:
  
# Create a .htaccess file in your root folder and paste the below code 
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
?>
Comment

how to remove index.php in codeigniter

1. Change $config['index_page'] = "index.php" to $config['index_page'] = "" in config.php
2. Change $config['uri_protocol'] ="AUTO" to $config['uri_protocol'] = "REQUEST_URI" in config.php
3. Create .htaccess file in root dir of your application and paste the following code
  	RewriteEngine on
	RewriteCond $1 !^(index.php|resources|robots.txt)
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^(.*)$ index.php/$1 [L,QSA]  
Comment

remove index.php in codeigniter

RewriteEngine on
RewriteCond $1 !^(index.php|resources|robots.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 
Comment

how to remove index.php in codeigniter

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Comment

removing index.php in codeigniter

//find the below code   
$config['index_page'] = "index.php" 
//replace with the below code
$config['index_page'] = ""
Comment

nginx codeigniter remove index.php

# Only for Nginx server
location / {
    try_files $uri $uri/ /index.php$is_args$args;
}
Comment

codeigniter apache remove index.php

#in apache mod rewrite is disabled
a2enmod rewrite
Comment

PREVIOUS NEXT
Code Example
Php :: php time() 
Php :: db transaction laravel 
Php :: mail sending setting magneto for mailhog 
Php :: excel return integer from date column laravel 
Php :: include() in php 
Php :: filesize in php 
Php :: php order filename 
Php :: what does defined di in php 
Php :: laravel carbon created_at date in current month 
Php :: laravel search 
Php :: php reverse dns lookup 
Php :: php artisan make :migration with model 
Php :: magento 2 get number of cart items 
Php :: php array filter specific keys 
Php :: generate unique order id in php 
Php :: wordpress wp_logout_url redirect 
Php :: phpmailer addattachment 
Php :: php find if string contains words from list index 
Php :: check the route type in laravel 
Php :: add a controller method in laravel routes 
Php :: declare variable in php class 
Php :: create excel file using php] 
Php :: get post id contact form 7 
Php :: php call constant in class 
Php :: what is abstract class in php 
Php :: do artisan laravel in code 
Php :: laravel chunk 
Php :: Multiple image upload with CodeIgniter 
Php :: laravel passport client 
Php :: violation: 1071 Specified key was too long; max key length is 1000 bytes 
ADD CONTENT
Topic
Content
Source link
Name
7+3 =