Forums / General Questions / links and image cant show after changed the domain

links and image cant show after changed the domain

Views: 915

Results 1 to 4 of 4
18 Aug 2011, 2:18 AM
#1
kyas avatar

kyas

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

links and image cant show after changed the domain

hello all. my zen cart version is 1.3.9h.
after i changed my domain earlier today, all the links and images are not found on the website(but they are still on the ftp). later i found out that they are still linking to the domain i had before. see the two website below(by the way i am using godaddy):

http://ipartsoutlet.com (new one)
http://applenberryla.com(old one)

how can i make they link back to my new domain?thanks!

18 Aug 2011, 4:56 AM
#2
flamer avatar

flamer

New Zenner

Join Date:
May 2010
Posts:
44
Plugin Contributions:
0

Re: links and image cant show after changed the domain

Its due to this code at the very top of your main page:

<base href="http://applenberryla.com/" /> <link rel="canonical" href="http://applenberryla.com/" />

which means any link that is relative (ie "/images/blah.gif") will have the base url appended tot he front. It would actually work fine by removing it altogether, or changing it to your new url would make it work. Find it in the developers toolkit.

18 Aug 2011, 7:26 AM
#3
kyas avatar

kyas

New Zenner

Join Date:
Aug 2011
Posts:
10
Plugin Contributions:
0

Re: links and image cant show after changed the domain

but right now i cant even login to my admin account . so can you tell me where does this file located?

18 Aug 2011, 9:48 PM
#4
flamer avatar

flamer

New Zenner

Join Date:
May 2010
Posts:
44
Plugin Contributions:
0

Re: links and image cant show after changed the domain

the issue I pointed out to you will nto stop you from being able to login to your admina ccount. This is a different problem, could be a number of things. Can you see your admin page and get a failed username/passwotrd or can you not find your admin page at all? If your login info is failing, its probably due to an issue witht he database setup.

Either way, the base href should fix itself, once you login to your admin and you set it in there in your store configuration.