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

codeigniter apache remove index.php

#in apache mod rewrite is disabled
a2enmod rewrite
Comment

PREVIOUS NEXT
Code Example
Php :: login php 
Php :: php code obfuscator 
Php :: codeigniter base url automatic 
Php :: php get result sql server 
Php :: php polymorphism 
Php :: php if equal 
Php :: timestamp in model laravel 
Php :: how to push associative array in php 
Php :: how to install mysql and phpmyadmin on windows 10 
Php :: artisan command to add resources to controller 
Php :: WP Migrate Lite 
Php :: image::make en php 
Php :: laravel display multiple selected values 
Php :: crrate model in laravel 
Php :: php slow 
Php :: switch php version ubuntu 
Java :: import math java 
Java :: spigot get player from uuid 
Java :: spring boot call method after startup with repository 
Java :: android java close app 
Java :: will my java minecraft be discontinued 
Java :: add retrofit dependency android 
Java :: java how to get current date 
Java :: java random 6 digit number 
Java :: array to map java7 
Java :: java bufferedimage get raster data 
Java :: foreground java jframe 
Java :: java get ram usage 
Java :: how to deselect radio button in java 
Java :: convert base64 to bitmap android 
ADD CONTENT
Topic
Content
Source link
Name
9+8 =