Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
XAMPP Localhost migration problem
#1
I am about to move a Get-Simple site from one server to another. I wanted to do a test run on my localhost. Everything is working pretty well except the links. The site is at localhost/lg. When I hover over a link it reads localhost/link.php when it should say localhost/lg/link.php. Has anyone encountered this problem before?
Reply
#2
add

Code:
<base href="http://localhost/lg/" />

to the <head> of your template.

Remove/change before transferring to your live site.
My Github Repos: Github
Website: DigiMute
Reply
#3
@listgiant: Have you seen the information in the wiki ?

To modify in-page links, I use rpl, a Python script (no need to compile or install anything, if Python is already available to you). Just run the following in your /data/pages directory:
Code:
rpl -bs -x.xml oldserver/oldfolder/ newserver/newfolder/ ./*
Those switches call for a test-run and back-up copies of modified files. If the results look reasonable, run it again without the s. If the modified files are correct, delete the back-up copies. More information in the on-line man page, for example here.

@n00dles: Isn't the <base> tag only useful if you have relative links in-page, in which case correcting the paths in .htaccess and gsconfig.php will fix everything anyway ?
--
Nick.
Reply




Users browsing this thread: 1 Guest(s)