Welcome Guest, Not a member yet? Register   Sign In
Live site paths are not working but its working on dev site
#3

[eluser]fiktionvt[/eluser]
I did change the base_url() so my base_url in my config looks like this


Code:
$root = "http://".$_SERVER['HTTP_HOST'];
$root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);

$config['base_url']    = $root;

I have not changed my index.php file it still points to the 'application' folder and I did not change the name of that folder so that should be working.

In my view the link to the contact page looks like this

Code:
<li id="nav_contact"><a href="&lt;?php echo site_url('site/contact')?&gt;"><span>Contact</span></a></li>

so site is my controller name with the function contact()

When I echo out site_url() on my localhost site it comes up as this: http://localhost:81/ci/index.php

When I echo out site_url() on my live site it cmes up as this http://livesite.com/index.php

I dunno whats wrong everything is working on my dev box. Please any help would be greatly appreciated.


Messages In This Thread
Live site paths are not working but its working on dev site - by El Forum - 09-11-2010, 05:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB