Jump to content

Question about building a new site on a demo server then moving to live server


Matt E

Recommended Posts

I'm working on a new site on a demo server with a temporary domain (like demo123.myhost.com).  My issue is when working with things like CMS and custom HTML modules, using WYSIWYG editors to insert images/links generates an absolute path such as https://demo123.myhost.com/path-to-image-or-page

When I eventually transfer the site to the primary domain, all of those links will become obsolete and broken. Is there a standard procedure for developing content on a demo server/domain that can be quickly and easily transferred to a live domain without needing to change them each individually?

 

Link to comment
Share on other sites

3 hours ago, El Patron said:

use relative address, ps had defines, use the premade define/your file

Yes I know you can do this in template files but I am asking specifically about inserting images and links into CMS pages or modules with WYSIWYG editors. Those do not work with the system defines like in TPL and PHP files.

Link to comment
Share on other sites

1 hour ago, El Patron said:

if you wysiwyg is not ps  compliant you will need to doo mass change on their output when you move to production.  

PS compliant? I am using the built-in editor (see attached image). When you add content like this, it creates absolute path to image using demo server URL.

How can this be change to use PS define for base URL?

 

wysiwyg-example-1.jpg

Edited by Matt E (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...