Welcome Guest, Not a member yet? Register   Sign In
How to remove index.php from URL in CodeIgniter ec2 elastic Beanstalk
#2

Add to your .htaccess file where index.php is in public folder.

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
RE: How to remove index.php from URL in CodeIgniter ec2 elastic Beanstalk - by InsiteFX - 07-21-2021, 08:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB