Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PROBLEM Global/Local Hyperlink-Problem
#1
Hi all,
i know, this Problem was mentioned before, but the suggested solutions does not fit to my problem.

I want to create and test the content of my local website on my local computer, and -- after successfull test --, copy the complete system to a web-server inside my local home network.

The default setting for the Website-URL is http://localhost:8080/

In this case i can choose a target page for my hyperlinks from a dropdown-list and the link is created as: http://localhost/8080/targetpage.

This will work on my local machine, but not after uploading the system to the server.

The suggested solution in this forum was, to change the setting for the Website-URL to : http://myserver/

In this case, i can not choose the target page from a list, i have to enter the URL for Hyperlinks manually.

Furthermore the system will work on my server, but not on my local machine.

Is there any way to use relative paths, which works on both ( local machine and server ? )
Or is there another solution for this problem?

My idea was, to write a copy-script, which copies the pages from the local machine to the server and exchanges all hyperlinks.
But maybe there is an easier way.

Thank you for your help
Reply
#2
I use this plugin: http://get-simple.info/forums/showthread.php?tid=5061
but there are other migration plugins here: http://get-simple.info/wiki/plugins:guide#migration
Reply
#3
(2018-03-27, 19:28:46)bero Wrote: Hi all,
i know, this Problem was mentioned before, but the suggested solutions does not fit to my problem.

I want to create and test the content of my local website on my local computer, and -- after successfull test --, copy the complete system to a web-server inside my local home network.

The default setting for the Website-URL is http://localhost:8080/

In this case i can choose a target page for my hyperlinks from a dropdown-list and the link is created as: http://localhost/8080/targetpage.

This will work on my local machine, but not after uploading the system to the server.

The suggested solution in this forum was, to change the setting for the Website-URL to : http://myserver/

In this case, i can not choose the target page from a list, i have to enter the URL for Hyperlinks manually.

Furthermore the system will work on my server, but not on my local machine.

Is there any way to use relative paths, which works on both ( local machine and server ? )
Or is there another solution for this problem?

My idea was, to write a copy-script, which copies the pages from the local machine to the server and exchanges all hyperlinks.
But maybe there is an easier way.

Thank you for your help

With this plugin http://get-simple.info/extend/plugin/ts-...lacer/799/ you can search for all occurances of http://localhost:8080/ and replaye it by http://www.example.org/

It works great for me.

Alex
Reply




Users browsing this thread: 1 Guest(s)