php - Codeigniter home page working fine but showing 404 for other pages -


i have uploaded working codeignter application on public ip testing. home page working fine other pages not working.

but can access inner files below: http://ip-address/index.php/about-us/who-we-are

my files below:

**config.php**  $config['base_url'] = ''; $config['index_page'] = ''; $config['uri_protocol'] = 'auto';   **routes.php**  $route['about-us/(:any)'] = "page/aboutus/$1"; $route['contact-us/(:any)'] = "page/contactus/$1"; $route['plan-articles'] = "page/planarticles";  $route['(:any)'] = "page/$1";  $route['default_controller'] = "page"; $route['404_override'] = '';   **.htacess**  <ifmodule mod_rewrite.c> rewriteengine on rewritebase /  rewritecond $1 !^(index\.php|assets|fav\.ico|robots\.txt) rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ /index.php?$1 [l]  </ifmodule> 

issue there project specific .htaccess file not being called apache server.

you have check in apache httpd.conf whether "allowoverride all" active or not.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -