My codeigniter project is working properly on the development server, but when I migrated this on live server I'm facing issue with the .htaccess file. I can't be removed index.php file. It gives an error 404 not found.
Asked
Active
Viewed 1,563 times
1
-
Make sure your server is configured to use .htaccess file. – cakan Jun 02 '17 at 10:11
-
Do you have mode-rewrite enabled for your production server? – bluehipy Jun 02 '17 at 10:17
-
Care to post `.htaccess` code if you think that is the issue? – Tpojka Jun 02 '17 at 10:22
1 Answers
1
Finally, i fixed this, follow below steps.
- just follow steps CodeIgniter user guide- removing index.php from url.
- Add .htaccess in root where application and system folders are located.
- Set $config['base_url'] = 'http:/your domain IP/ci folder name'; Note: path - ..config/config.php
- Set $config['index_page'] = ""; Note: path - ..config/config.php
imp. Add below code in httpd.conf file.
Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all
And restart the server. Fixed.

Mahesh Pote
- 21
- 6
-
Don't use ip in domain base url your css and other links may not work `$config['base_url'] = 'http://localhost/project/';` – Jun 02 '17 at 10:49
-