Welcome Guest, Not a member yet? Register   Sign In
Impossible 404 error.

Hello fellow Codeigniters,

This is my first post i have ever made regarding codeigniter even though i have been working with codeigniter for some time now.

I have struggling the past few days getting codeigniter to work with my digital ocean host. The problem is probably related to my .htaccess file or config file.

The front page loads perfectly fine but all the links are broken.

I really hope you guys can help me.

my .htaccess :

# Deny from all
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

my Config file:

$config['base_url']   = "";
// for common download uploaded files & fckeditor
$config['front_base_url']  = "";
// site root folder to check file exists in server absolute path or not
$config['server_absolute_path']  = "/var/www/html/";
$config['file_upload_absolute_path']  = "/var/www/html/";
$config['file_upload_base_url']  = $config['front_base_url']."upload/";
$config['css_images_js_base_url'] = $config['base_url']."public/";

i have no idea why it doesn't work. i have been able to set my page up on many other hosts but for some reason this just dont work for me :/

My php info then it can be accessed on

I feel a bit stupid now Smile My .htaccess didn't work and i couldn't get it to work after i changed all the apache configs to AllowOverride All

Solution: Restart apache Smile

No worries. We all make dumb mistakes, and the dumber we feel, the less likely we'll make that mistake again. Glad it all worked out. :coolsmile:

Theme © iAndrew 2016 - Forum software by © MyBB