Welcome Guest, Not a member yet? Register   Sign In
CI 4 remove index.php
#6

(This post was last modified: 12-29-2020, 12:30 PM by InsiteFX.)

You can also remove it by using .htaccess in the root with index.php by adding this
to the .htaccess file.

Code:
       # Remove index.php from URL
       RewriteCond %{HTTP:X-Requested-With}    !^XMLHttpRequest$
       RewriteCond %{THE_REQUEST}              ^[^/]*/index\.php [NC]
       RewriteRule ^index\.php(.*)$            $1 [R=301,NS,L]
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
CI 4 remove index.php - by nurgaleevarman - 12-07-2020, 01:38 AM
RE: CI 4 remove index.php - by captain-sensible - 12-07-2020, 01:21 PM
RE: CI 4 remove index.php - by demyr - 12-08-2020, 02:16 AM
RE: CI 4 remove index.php - by nurgaleevarman - 12-28-2020, 09:44 PM
RE: CI 4 remove index.php - by CsurveyVN - 03-14-2022, 12:34 AM
RE: CI 4 remove index.php - by paliz - 12-08-2020, 09:29 AM
RE: CI 4 remove index.php - by InsiteFX - 12-29-2020, 12:29 PM
RE: CI 4 remove index.php - by boddah85 - 11-08-2022, 02:11 AM
RE: CI 4 remove index.php - by thinkstartpl - 01-26-2021, 11:51 PM
RE: CI 4 remove index.php - by Jalapeno - 02-07-2022, 06:59 AM
RE: CI 4 remove index.php - by ClaudeSjDevinHenry - 03-03-2022, 04:44 AM
RE: CI 4 remove index.php - by Kenn38 - 03-03-2022, 09:39 PM
RE: CI 4 remove index.php - by ikesela - 11-08-2022, 06:54 AM



Theme © iAndrew 2016 - Forum software by © MyBB