• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Impossible 404 error.

#1
[eluser]Unknown[/eluser]
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 :

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


my Config file:

Code:
$config['base_url']   = "http://104.131.95.78/";
// for common download uploaded files & fckeditor
$config['front_base_url']  = "http://104.131.95.78/";
// 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

http://104.131.95.78/info.php

#2
[eluser]Unknown[/eluser]
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

#3
[eluser]RobertSF[/eluser]
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:


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.