GetSimple Support Forum
XAMPP Localhost migration problem - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: XAMPP Localhost migration problem (/showthread.php?tid=2293)



XAMPP Localhost migration problem - listgiant - 2011-10-20

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?


XAMPP Localhost migration problem - n00dles101 - 2011-10-20

add

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

to the <head> of your template.

Remove/change before transferring to your live site.


XAMPP Localhost migration problem - hameau - 2011-10-20

@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 ?