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 :: fetch row in php 
Php :: PHP executable not found. Install PHP and add it to your PATH or set the php.executablePath setting in linux 
Php :: how to display the responce of curl in php 
Php :: how to get auth user name in laravel 
Php :: php unset array key 
Php :: factory laravel tinker 
Php :: php delete element from array 
Php :: laravel seed fresh 
Php :: how to change laravel port 
Php :: multiply a string php 
Php :: serve in localhost using php 
Php :: deactivate plugin wp cli 
Php :: laravel 8 created at format 
Php :: php get ip from host 
Php :: laravel with where has 
Php :: how to mask phone number in php 
Php :: validation not exists with this id laravel 
Php :: php convert to lowercase 
Php :: how to get current url in laravel 
Php :: laravel validation required_if one parameter exist 
Php :: Remove public or index file from url in laravel 
Php :: woocommerce bulk product delete 
Php :: php counter 
Php :: increase memory limit wordpress 
Php :: Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() 
Php :: Laravel randomise data from database 
Php :: php define object 
Php :: mpdf output 
Php :: php stop execution 
Php :: php list directories 
ADD CONTENT
Topic
Content
Source link
Name
8+3 =