{"id":17878,"date":"2019-08-23T16:47:11","date_gmt":"2019-08-23T20:47:11","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=17878"},"modified":"2020-03-12T14:39:19","modified_gmt":"2020-03-12T18:39:19","slug":"how-to-define-a-temporary-url-for-your-staging-site","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/boldgrid-cloud-wordpress-product-guide\/how-to-define-a-temporary-url-for-your-staging-site\/","title":{"rendered":"How to Define a Temporary URL for Your Staging Site"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><h1 id=\"how-to-define-the-staging-url-for-your-cloud-wordpress-website\">How to Define The Staging URL for Your Cloud WordPress Website<\/h1>\n<p>If you are creating a staging site on Cloud WordPress by <a href=\"https:\/\/www.boldgrid.com\/support\/boldgrid-cloud-wordpress-product-guide\/how-to-import-a-database-in-cloud-wordpress\/\">importing your database<\/a> you may not be able to access your staging site. This is because WordPress maintains a database option for the website&rsquo;s URL. You can <a href=\"\/support\/boldgrid-cloud-wordpress-product-guide\/how-to-change-the-siteurl-and-home-options-in-cloud-wordpress\/\">update this in the database<\/a>, but if you plan on exporting your staging database to your production site, you should define the staging URL for your Cloud WordPress instead. Follow these steps to set a temporary staging URL for your Cloud WordPress website.<\/p>\n<ol>\n<li>Log into&nbsp;<a href=\"https:\/\/boldgrid.com\/central\">BoldGrid Central<\/a>&nbsp;and navigate to&nbsp;<strong>Cloud WordPress<\/strong><\/li>\n<li>Locate the correct URL by clicking on&nbsp;<strong>Details<\/strong> and copy the Site URL, then go&nbsp;<strong>Back<\/strong><\/li>\n<li>Navigate to the&nbsp;<strong>Advanced Tools&nbsp;<\/strong>tab and click on&nbsp;<strong>File Manager<\/strong><br>\n<a title=\"\" href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109.png\" data-rel=\"lightbox-image-0\" data-rl_title=\"\" data-rl_caption=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-17846\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-300x183.png\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-300x183.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-768x468.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-610x371.png 610w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-250x152.png 250w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-550x335.png 550w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-800x487.png 800w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-296x180.png 296w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-493x300.png 493w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109-821x500.png 821w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2019\/08\/Selection_109.png 882w\" alt=\"\" width=\"300\" height=\"183\"><\/a><\/li>\n<li>Locate and click on the filename for&nbsp;<strong>wp-config.php<\/strong><\/li>\n<li>Click on <strong>Edit&nbsp;<\/strong>or&nbsp;<strong>AdvancedEditor<\/strong><\/li>\n<li>Scroll down to the line:\n<pre>\/* That's all, stop editing! Happy blogging. *\/<\/pre>\n<\/li>\n<li>Add the following code above that line, making sure to replace&nbsp;<strong>trial-XXXXXXXX<\/strong> with your unique staging site URL:\n<pre class=\"wp-block-preformatted\">define( 'WP_SITEURL', 'http:\/\/demo2.cloudwp.dev\/trial-XXXXXXXX' );\r\ndefine( 'WP_HOME', 'http:\/\/demo2.cloudwp.dev\/trial-XXXXXXXX' );<\/pre>\n<\/li>\n<\/ol>\n<h2 id=\"next-steps\">Next Steps<\/h2>\n<p>Now that you have your imported staging website using the Cloud WordPress URL, you can make any changes you need to. Next, you may want to <a href=\"https:\/\/www.boldgrid.com\/support\/boldgrid-cloud-wordpress-product-guide\/how-to-deploy-a-staging-website-to-production\/\">deploy your staging site to production<\/a>.<\/p>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>How to Define The Staging URL for Your Cloud WordPress Website If you are creating a staging site on Cloud WordPress by importing your database you may not be able to access your staging site. This is because WordPress maintains a database option for the website&rsquo;s URL. You can update this in the database, but [&hellip;]<\/p>\n","protected":false},"author":1294,"featured_media":15511,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"How to Define The Staging URL for Your Cloud WordPress Website","bgseo_description":"If you are creating a staging site on Cloud WordPress by importing your database you may not be able to access your staging site. Follow these steps to define the staging URL for your Cloud WordPress website.","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[647],"tags":[],"class_list":["post-17878","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-boldgrid-cloud-wordpress-product-guide","feature-type-premium","experience-level-intermediate"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/1294"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=17878"}],"version-history":[{"count":2,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17878\/revisions"}],"predecessor-version":[{"id":17880,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/17878\/revisions\/17880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media\/15511"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=17878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=17878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=17878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}