close

[Solved] Codeigniter The requested URL was not found on this server

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error Codeigniter The requested URL was not found on this server in php. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Codeigniter The requested URL was not found on this server Error Occurs?

Today I get the following error Codeigniter The requested URL was not found on this server in php.

How To Solve Codeigniter The requested URL was not found on this server Error ?

  1. How To Solve Codeigniter The requested URL was not found on this server Error ?

    To Solve Codeigniter The requested URL was not found on this server Error put .htaccess file to your app folder outside application folder

  2. Codeigniter The requested URL was not found on this server

    To Solve Codeigniter The requested URL was not found on this server Error put .htaccess file to your app folder outside application folder

Solution 1

Your .htaccess should be like this (removing index page):

Options +FollowSymlinks -Indexes
RewriteEngine on

DirectoryIndex index.php
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

put .htaccess file to your app folder outside application folder

and set your config.php like this :

$config['base_url'] = 'http://localhost/app_folder/';
$config['index_page'] = '';

Now access

http://localhost/app_folder/ 

will show you your login page

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read

Leave a Comment