Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Migrating from test domain to live - relative file paths
Author Message
nwlinux Offline
Junior Member

Posts: 15
Joined: Nov 2011
2012-05-10 07:53:34
Migrating from test domain to live - relative file paths
I am developing a Get Simple site at www2.domain.com. Looking at the file paths in the XML, I will have to open up each file and "search and replace" the www2 out of the relative file path. I read a couple of forums posts on the topic, none of which worked well. Any progress on this problem, or is there a better method of working here?

References:
http://get-simple.info/forum/topic/3434/...pdf-links/
http://get-simple.info/forum/post/23856/#p23856

Mark Moore
http://nwlinux.com
Find all posts by this user Quote this message in a reply
yojoe Offline
GS Freak

Posts: 1,143
Joined: Jun 2010
2012-05-10 08:12:11
Migrating from test domain to live - relative file paths
Unfortunately there's no solution other than "search&replace" after you created the content w/o fixing relative urls before adding images/links.

thread: http://get-simple.info/forum/post/26929/
useful software: http://get-simple.info/forum/post/14952/#p14952

Themes: Getsimple BlueBusiness theme
Plugins: Online Visitors, Notepad
Visit this user's website Find all posts by this user Quote this message in a reply
nwlinux Offline
Junior Member

Posts: 15
Joined: Nov 2011
2012-05-10 08:14:42
Migrating from test domain to live - relative file paths
That is the answer that I was expecting. However, it was worth a shot. The domain has a little over a hundred pages, so it won't be a deal breaker. Either way, I am pleased with the sub one-second page loads on the new GS site :-)

Thank you for your input yojoe.

Mark

Mark Moore
http://nwlinux.com
Find all posts by this user Quote this message in a reply
Connie Offline
Super Moderator

Posts: 2,683
Joined: Feb 2011
2012-05-10 16:57:52
Migrating from test domain to live - relative file paths
if you use an editor like Notepad++, you can open all files at once and do a global search and replace ..

there are other tools out there as well which replace the strings in all files of one folder

|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
Find all posts by this user Quote this message in a reply
shawn_a Offline
Developer

Posts: 2,011
Joined: Sep 2011
2012-05-11 01:03:38
Migrating from test domain to live - relative file paths
Connie wrote:if you use an editor like Notepad++, you can open all files at once and do a global search and replace ..

there are other tools out there as well which replace the strings in all files of one folder

There is another thread where we are discussing solutions, not very successfully, but feel free to comment if you can find it.

NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Visit this user's website Find all posts by this user Quote this message in a reply
nwlinux Offline
Junior Member

Posts: 15
Joined: Nov 2011
2012-05-18 08:27:47
Migrating from test domain to live - relative file paths
I ended up using grep and sed to replace strings within the XML. It took around 0.5 second to accomplish the task. It couldn't have been any easier.

Overall, not a big impass. The input command for Linux systems is at http://nwlinux.com/fix-get-simple-cms-ur...w-domain/.

Mark Moore
http://nwlinux.com
Find all posts by this user Quote this message in a reply
octopus Offline
Junior Member

Posts: 4
Joined: Jun 2012
2012-06-02 02:41:44
Migrating from test domain to live - relative file paths
In 3.0 the best way to avoid this problem is to set your WebiteURL on the setting page to just '/'. That way it does not put the domain name into every embedded link. Unfortunately 3.1 does not allow this without modification Sad



One way to get around this is to go into your /data/other/website.xml file directly and set your SITEURL to just '/'. You need to do this very early on before you start building your site and before you start embedding anything via the editor. Maybe the developers will release the new restriction theyve added to the URL field on the setting page. (?? hopefully)
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)

Generate Leads from Documents vCard Hosting