internal link – jump to link – from https to http issue

I did a home-page in php (which can be seen only on https) that page relinks to 2 different internal webportal.
One of the two internal webportal (MpcPanel) is on a http url.

example:
home-page url: https://192.168.1.100

html code of the home-page that does not link to the correct wepportal (MpcPanel):

  <div align="center" class="copyright" style="width: 400px; border: thin solid #F48C13; margin:0 auto;">
    <p><a href="/cgi-bin/class/login.cgi"><strong>Accesso a MpcPanel</strong></a></p>
  <p><a href="/cgi-bin/class/login.cgi"><img src="/classpba/include/images/logo.png" alt="" width="240" height="50" longdesc="/classpba/include/images/logo.png" /></a></p>

The full url I want to go is: http://192.168.1.100/cgi-bin/class/login.cgi

And the full url of the image is: http://192.168.1.100/classpba/include/images/logo.png

I dont want to put in the src= the full url becouse, I want the opportunity to change the IP of my server without having to be forced to manually change also the IP in the home-page.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s