Welcome Guest, Not a member yet? Register   Sign In
Img() with link and rollover
#11

[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">
&lt;html &gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;&lt;?= $title ?&gt;&lt;/title&gt;
&lt;link rel="apple-touch-icon" href="&lt;?= base_url();?&gt;img/iphone.png"/&gt;
&lt;link type="text/css" href="&lt;?= base_url();?&gt;com/css/global.css" rel="stylesheet" media="screen" /&gt;
&lt;link type="text/css" href="&lt;?= base_url();?&gt;com/css/&lt;?= $page ?&gt;.css" rel="stylesheet" media="screen" /&gt;
&lt;link type="text/css" href="&lt;?= base_url();?&gt;com/css/accordion.css" rel="stylesheet" media="screen" /&gt;

[removed][removed]
&lt;/head&gt;


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?


Messages In This Thread
Img() with link and rollover - by El Forum - 02-28-2010, 12:01 PM
Img() with link and rollover - by El Forum - 02-28-2010, 12:10 PM
Img() with link and rollover - by El Forum - 02-28-2010, 12:20 PM
Img() with link and rollover - by El Forum - 02-28-2010, 03:43 PM
Img() with link and rollover - by El Forum - 03-02-2010, 12:23 PM
Img() with link and rollover - by El Forum - 03-03-2010, 02:50 AM
Img() with link and rollover - by El Forum - 03-03-2010, 10:22 AM
Img() with link and rollover - by El Forum - 03-03-2010, 10:28 AM
Img() with link and rollover - by El Forum - 03-03-2010, 10:46 AM
Img() with link and rollover - by El Forum - 03-03-2010, 11:50 AM
Img() with link and rollover - by El Forum - 03-03-2010, 12:06 PM
Img() with link and rollover - by El Forum - 03-03-2010, 12:11 PM
Img() with link and rollover - by El Forum - 03-03-2010, 12:18 PM
Img() with link and rollover - by El Forum - 03-03-2010, 12:25 PM
Img() with link and rollover - by El Forum - 03-03-2010, 12:28 PM
Img() with link and rollover - by El Forum - 03-03-2010, 01:49 PM
Img() with link and rollover - by El Forum - 03-10-2010, 01:52 PM
Img() with link and rollover - by El Forum - 03-10-2010, 02:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB