redirect to local host..
Posted by: poji (203.121.122.---)
Date: September 11, 2012 07:54PM

hello guys

Can u have a look at my site..

i dont know how to explain the problem..

the page is not fully load(picture are missing)
when click link its redirect to local host..

[hunkydory.dyndns.biz]



Edited 1 time(s). Last edit at 09/11/2012 10:47PM by poji.

Options: ReplyQuote
Re: Pls Help i dont what is the problem with my server
Posted by: RiggsFolly (---.as13285.net)
Date: September 11, 2012 10:47PM

Your code
<li><a href="[localhost];» Home</a></li>

you have hard coded localhost in all your links.

use href="index.php?route=common/home"



Edited 1 time(s). Last edit at 09/11/2012 10:50PM by RiggsFolly.

Options: ReplyQuote
Re: redirect to local host..
Posted by: poji (175.142.71.---)
Date: September 11, 2012 10:47PM

Help me please..

Options: ReplyQuote
Re: Pls Help i dont what is the problem with my server
Posted by: poji (175.142.71.---)
Date: September 11, 2012 10:51PM

RiggsFolly Wrote:
-------------------------------------------------------
> Your code
>
> » Home
>
> you have hard coded localhost in all your links.
>
> use href="index.php?route=common/home"




How do i fix it? Im using opencart..and totally new with thing..
But i want to learn..

Options: ReplyQuote
Re: redirect to local host..
Posted by: RiggsFolly (---.as13285.net)
Date: September 11, 2012 11:13PM

I am afraid this is a wamp server help site and not a web development help site.

I suggest you hit some books, development is not something you can just pick up and do without a bit of basic knowledge and understanding of the environment you are using.


Basically all the href="..." and src="" attributes of your anchor and image tags are using a fully qualified url.
in other words you have ( or your tool has ) coded http:// localhost / index.php? when you should be using a relative address i.e. index.php? ( without the domain name part )

Options: ReplyQuote
Re: redirect to local host..
Posted by: poji (175.142.71.---)
Date: September 11, 2012 11:45PM

Problem solved..

thanks anyway..

Options: ReplyQuote


Sorry, only registered users may post in this forum.