Welcome Guest, Not a member yet? Register   Sign In
[solved] CI 1.7.3 no css after copying website from FTP to localhost, also links work bad
#1

[eluser]SPeed_FANat1c[/eluser]
Hi,

I cannot find the solution for several hours already.

I developed the website using localhost in my pc. It was ok, then uploaded to ftp, then made cahnges on ftp, then again back to my pc.

And now on my pc I cannot see the css, only content without style. I checked the source and I see
Code:
<link rel="stylesheet" href="localhost/darzelis/images/FreshMedia.css" type="text/css" />

so the url to css is ok. I tried making relative url - only leaving images/FreshMedia.css then I see the css. Ok, but I don't get why I now don't see using full url.

Yet - the links: in the source they are ok:
Code:
<a href="localhost/darzelis/darbuotojai">Darbuotojai</a>

But when I click on the link, it goes to
Code:
http://localhost/darzelis/localhost/darzelis/darbuotojai

Yet the picture in sidebar:
Code:
<img class="reklama" src="localhost/darzelis/uploads/reklama/bannerfans_115205_(1).jpg" alt="#">

teh src attribute is ok, I can copy the url and paste in browser address field, and then I see that image, but on the sidebar I cannot see it.

I have changed base url to

Code:
$config['base_url'] = "localhost/darzelis/";

.htaccess RewriteBase to

Code:
RewriteBase /darzelis/

It looks that I did everything I need to when moving site, but still does not work Sad maybe you have an idea what could be wrong?


Edit:

I guess I found the problem - I had to change to

Code:
$config['base_url'] = "http://localhost/darzelis/";

(missed 'http://' part)...




Theme © iAndrew 2016 - Forum software by © MyBB