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

(This post was last modified: 07-22-2021, 01:46 AM by InsiteFX.)

Code:
## try this one.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

## if that does not work try this one.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]


Try that, if those do not work then it has to be a server setup issue.


OR try this also.

PHP Code:
// Try changing this to a different protocol.
$config['uri_protocol'] = 'REQUEST_URI'


Let me know if you get it working.
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-22-2021, 01:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB