[eluser]elaniobro[/eluser]
Yes, that is correct. However when I do put that as my base URL, all the links to my images/css/js etc.. become broken.
Code:
$config['base_url'] = "http://www.example.com/5/";
My site is littered with 404's
Code:
http://www.example.com/5/com/css/accordion.css
Which in theory should be correct.
Here is how it is linked in my header:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?= $title ?></title>
<link rel="apple-touch-icon" href="<?= base_url();?>img/iphone.png"/>
<link type="text/css" href="<?= base_url();?>com/css/global.css" rel="stylesheet" media="screen" />
<link type="text/css" href="<?= base_url();?>com/css/<?= $page ?>.css" rel="stylesheet" media="screen" />
<link type="text/css" href="<?= base_url();?>com/css/accordion.css" rel="stylesheet" media="screen" />
[removed][removed]
</head>
The base_url in the config sets the absolute path. And the index.php file sets the routes for application and system which are affixed the base path.
So what am I doing wrong in my scenario? Should I not be using the base_url() function to set the path with?