remove index php from url

Solutions on MaxInterview for remove index php from url by the best coders in the world

showing results for - "remove index php from url"
Helena
08 Sep 2020
1Make Sure you are using APACHE and Mod Rewrite is Active
2Make .htaccess file in root folder.
3
4<IfModule mod_rewrite.c>
5
6# Enable Rewrite Engine
7# ------------------------------
8RewriteEngine On
9RewriteBase /
10
11# Redirect index.php Requests
12# ------------------------------
13RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
14RewriteCond %{THE_REQUEST} !/system/.*
15RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]
16
17# Standard ExpressionEngine Rewrite
18# ------------------------------
19RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
20RewriteCond %{REQUEST_FILENAME} !-f
21RewriteCond %{REQUEST_FILENAME} !-d
22RewriteRule ^(.*)$ /index.php/$1 [L]
23
24</IfModule>