Step 1 :
Make some changes in config.php file Go to “your-project-or-domain/a pplication/config/config. php”
You will find there below code.
You will find there below code.
- $config['index_page'] = 'index.php';
- //Replace above code with below code
- $config['index_page'] = '';
Add following rules in your .htaccess file on root directory.
- RewriteEngine on
- RewriteBase /your-project-directory-name/
- RewriteCond $1 !^(index.php|resources|robots.txt)
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ index.php/$1 [L,QSA]
It’s done but If you face still there is an issue then you need to change one more configuration in config.php file.
You need to find below code
You need to find below code
- $config['uri_protocol'] = 'AUTO';
- //Replace above code with below code
- $config['uri_protocol'] = 'REQUEST_URI';
No comments:
Post a Comment