Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mahbub-shohag/3a776602fd11bb936b83216ec9523536 to your computer and use it in GitHub Desktop.
Save mahbub-shohag/3a776602fd11bb936b83216ec9523536 to your computer and use it in GitHub Desktop.
delete the .htaccess file from root directory.add new .htaccess file with these codes.
RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1
//find the below code
$config['index_page'] = "index.php"
//replace with the below code
$config['index_page'] = ""
//find the below code
$config['uri_protocol'] = "AUTO"
//replace with the below code
$config['uri_protocol'] = "REQUEST_URI"
thats it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment