title: Relative / Root paths on apache / cpanel / php shared hosting
body: <p>I am trying to deploy a php / codeigniter project to a shared hosting environment.
  Locally I am running MAMP and all my paths are referenced thus:-</p>
  
  <pre><code>background:transparent url(/img/myimj.jpg) left top no-repeat;
  </code></pre>
  
  <p>When I deploy the shared host, these links do not work and to resolve them I need to add "../". Changing all these references alone would be tiresome. but codeigniter paths are also affected and I want to understand how I can have the same mapping as my local instance of MAMP apache.</p>
  
  <p>Not being well versed in apache, I do not know how to resolve this issue. I am using the root public_html folder that has been mapped to my user. Is it possible to use a rewrite rule in a .htaccess to do this?</p>
  
  <p>Thanks for your time.</p>