¡Hola, amigos! I’m Señor FAQ, the mustached maestro of questions and answers! With my trusty glasses and a book of endless wisdom, I turn dudas into solutions. Soy el héroe de los curiosos and the champion of clarity.
Changing the domain for your JScms installation involves updating the domain settings in your database and ensuring your server configuration is updated. Follow these steps to change the domain:
-- Update domain in jscms_pages table
UPDATE jscms_pages
SET content = REPLACE(content, 'https://old-domain.com', 'https://new-domain.com'),
page_css = REPLACE(page_css, 'https://old-domain.com', 'https://new-domain.com'),
page_javascript = REPLACE(page_javascript, 'https://old-domain.com', 'https://new-domain.com');
-- Update domain in news table
UPDATE jscms_news
SET content = REPLACE(content, 'https://old-domain.com', 'https://new-domain.com'),
news_css = REPLACE(news_css, 'https://old-domain.com', 'https://new-domain.com'),
news_javascript = REPLACE(news_javascript, 'https://old-domain.com', 'https://new-domain.com');
Adjust the table and column names to match your database structure. Replace old-domain.com
with your current domain and new-domain.com
with the new domain. You might need to do this for other tables as well, if you have installed plugins.
include/db.php
and update the BASE_URL
settings.With these steps, your JScms installation will be successfully transferred to the new domain.