Welcome Guest, Not a member yet? Register   Sign In
problem in removing index.php from codeigniter project
#1

[eluser]doforumda[/eluser]
hi, I am facing a problem in removing index.php file from my CI project. I followed these links

Code:
http://pc-tips.net/2008/10/21/remove-indexphp-from-your-codeigniter-application-url/
http://ellislab.com/forums/viewthread/115130/
http://www.danielwmoore.com/remove_index_from_codeigniter
http://ellislab.com/codeigniter/user-guide/general/urls.html

but none of them is working for me. I am still getting this error
Code:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

here is my .htaccess file
Code:
RewriteEngine On
RewriteBase /CIapplication
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /CodeIgniterTuts/CI_Login_better/index.php/$1 [L]

How can i get rid of index file?
#2

[eluser]doforumda[/eluser]
ok guys here is the solution for my problem.
I opened httpd.conf file for apache server and searched for "mod_rewrite". Here is my httpd.conf file
Code:
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so

what I found is the line "LoadModule rewrite_module modules/mod_rewrite.so" was commented then I just uncomment it and restart the server and it works. :-)




Theme © iAndrew 2016 - Forum software by © MyBB