Created
May 3, 2017 16:21
-
-
Save mahbub-shohag/3a776602fd11bb936b83216ec9523536 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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