Welcome Guest, Not a member yet? Register   Sign In
requested URL was not found on this server

Same problem here - fixed with this as the .htaccess file:
Quote:RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

Instead of this, which is in the CI user guide:
Quote:RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Basically, remove the leading "/" before index.php - and if you use an "assets" folder to store your css, images, etc. then add that sucker in there.

Just wanted to say a massive thanks to you guys for this. I uploaded my site to media temple and since I was using the access domain which included the sub domain my controllers didn't work but this fixed it.

Although I do have to switch between htaccess files on the local dev (no dub domain) and the access domain for (mt) (the sub domain).

Next step is to figure out how to have one htaccess that can handle both straight domain and sub domains. Must be possible but I'm not that great with rewrite rules so will require some reading.

But any thanks for the posting guys,


I had a similar problem with codeigniter + bitnami lamp stack on ubuntu.

I solved it by modifying the config.php and resetting $config['index_page'] from

$config['index_page'] = "";

back to

$config['index_page'] = "index.php";

i too had a similar problem..got solved by

This worked for me: in htaccess
RewriteEngine On
# Put your installation directory here:
## If your URL is www.example.com/, use /
## If your URL is www.example.com/site_folder/, use /site_folder/

#RewriteBase /ci/

## Do not enable rewriting for files or directories that exist
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

## For requests that are not actual files or directories,
## Rewrite to index.php/URL
RewriteRule ^(.*)$ index.php/$1 [PT,L]

Theme © iAndrew 2016 - Forum software by © MyBB