*

pitkag

  • ***
  • 30 posts
Migrating a website from one demo server url to a main server
« on: November 21, 2021, 02:24:52 PM »
Hello,

How does one migrate a website from a demo server to the server it will run on?
I have moved files and database but getting configuration and listings are not showing
What could i be doing wrong?

Kind Regards

*

mwindey

  • *****
  • 484 posts
Re: Migrating a website from one demo server url to a main server
« Reply #1 on: November 21, 2021, 02:29:41 PM »
@pitkag

Did you set config.php correctly?
// Web address - modify here for SSL version of site
define('WEB_PATH', 'https://youdomain.com');

// *************************************** //
// ** OPTIONAL CONFIGURATION PARAMETERS ** //
// *************************************** //

// Demo mode
//define('DEMO', true);
//define('DEMO_THEMES', true);
//define('DEMO_PLUGINS', true);

*

pitkag

  • ***
  • 30 posts
Re: Migrating a website from one demo server url to a main server
« Reply #2 on: November 21, 2021, 02:59:38 PM »
Yes i did,

Do i need to add any details on the the relative web url. This is how i have placed it

// Relative web url
define('REL_WEB_URL', 'https://www.my domainname.biz/');

// Web address - modify here for SSL version of site
define('WEB_PATH', 'https://www.mydomainname.biz/');

*

mwindey

  • *****
  • 484 posts
Re: Migrating a website from one demo server url to a main server
« Reply #3 on: November 21, 2021, 05:02:37 PM »
@pitkag

If the website is in folder public_html there is no need to assign a relative url it is only in case you uploaded files in yourdomain.com/mapname

Rel url should look like this
// Relative web url
define('REL_WEB_URL', '/');

copy & paste:

// Relative web url
define('REL_WEB_URL', '/');

// Web address - modify here for SSL version of site
define('WEB_PATH', 'https://yourdomain.biz/');

// *************************************** //
// ** OPTIONAL CONFIGURATION PARAMETERS ** //
// *************************************** //

// Enable debugging
// define('OSC_DEBUG', true);
// define('OSC_DEBUG_DB', true);
// define('OSC_DEBUG_LOG', true);


// Demo mode
//define('DEMO', true);
//define('DEMO_THEMES', true);
//define('DEMO_PLUGINS', true);
« Last Edit: November 21, 2021, 05:06:49 PM by mwindey »

*

pitkag

  • ***
  • 30 posts
Re: Migrating a website from one demo server url to a main server
« Reply #4 on: November 21, 2021, 06:35:17 PM »
Thank you for the assistance,

It now shows the homepage but i get an error when i get into he inside pages. I think i need to change my .htaccess.
This is how i have it as now. Kindly advice

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase  /home/globalm/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /home/globalm/[L]
</IfModule>

*

mwindey

  • *****
  • 484 posts
Re: Migrating a website from one demo server url to a main server
« Reply #5 on: November 22, 2021, 08:48:40 AM »
@Pitkag

That should be .htaccess:

<IfModule mod_headers.c>
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>