{"id":18412,"date":"2025-01-13T07:52:12","date_gmt":"2025-01-13T07:52:12","guid":{"rendered":"https:\/\/truehost.com\/support\/?post_type=docs&#038;p=18412"},"modified":"2025-01-13T08:11:46","modified_gmt":"2025-01-13T08:11:46","password":"","slug":"deploy-react-app-on-cpanel","status":"publish","type":"docs","link":"https:\/\/truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/","title":{"rendered":"How to Deploy a React App on cPanel: A Step-by-Step Guide"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>Deploying a React app on cPanel is a straightforward process that can be completed in just a few steps. Whether you&#8217;re a beginner or an experienced developer, this guide will walk you through the entire process, from building your React app to making it live on cPanel.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Prerequisites<\/strong><\/h2>\n\n\n\n<p>Before you begin, ensure you have the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A React app ready for deployment.<\/li>\n\n\n\n<li>Access to a cPanel account.<\/li>\n\n\n\n<li>Basic knowledge of file management in cPanel.<\/li>\n\n\n\n<li><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 1: Add the Homepage(domain) URL to your package.json File<\/strong><\/h3>\n\n\n\n<p>First, open up your React App. Open up your <code><strong>package.json <\/strong><\/code>file and add a &#8220;<code><strong>homepage<\/strong><\/code>&#8221; attribute as shown below in the screenshot:<\/p>\n\n\n\n<p>The format should be\u00a0<code>\"homepage\": \"http:\/\/yourdomainname.whatever\"<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"440\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-38.png\" alt=\"\" class=\"wp-image-18413\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-38.png 918w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-38-300x144.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-38-768x368.png 768w\" sizes=\"auto, (max-width: 918px) 100vw, 918px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2 : Create the\u00a0<code>build<\/code>\u00a0folder<\/strong><\/h3>\n\n\n\n<p>To create a production-ready build of your React app, run the following command in your project directory:<\/p>\n\n\n\n<p><strong><code>npm run build<\/code><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"961\" height=\"632\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-39.png\" alt=\"\" class=\"wp-image-18414\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-39.png 961w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-39-300x197.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-39-768x505.png 768w\" sizes=\"auto, (max-width: 961px) 100vw, 961px\" \/><\/figure>\n\n\n\n<p>You&#8217;ll notice this creates a new directory in your project called\u00a0<code>build<\/code>. The build folder is essentially a super-compressed version of your files that has everything your browser and server needs to identify and run your app.<\/p>\n\n\n\n<p>Now generate a zip file of the build folder ready for the next step. Upload to cPanel. <\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><\/h4>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 3: Access cPanel<\/strong><\/h3>\n\n\n\n<p>Log in to your cPanel account and navigate to the\u00a0<strong>File Manager<\/strong>. This is where you\u2019ll upload your React app.<\/p>\n\n\n\n<p>Navigate to the root directory of your domain, that is &#8220;<strong><code>public_html<\/code><\/strong>&#8221; for the main domain or a folder with the same name as your domain(addon domain) or subdomain e.g &#8220;<code><strong>your-otherdomain.com<\/strong><\/code>&#8221;  or &#8220;<strong><code>subdomain.domain.com<\/code><\/strong>&#8221; folder<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>In my case, I&#8217;ll  be using a subdomain.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"373\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-40-1024x373.png\" alt=\"\" class=\"wp-image-18415\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-40-1024x373.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-40-300x109.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-40-768x279.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-40.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Upload the Zip file and Extract.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"457\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-41-1024x457.png\" alt=\"\" class=\"wp-image-18416\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-41-1024x457.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-41-300x134.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-41-768x342.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-41.png 1321w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Navigate to the build folder and select all files and move them to the root directory of your domain or subdomain.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"383\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-42-1024x383.png\" alt=\"\" class=\"wp-image-18417\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-42-1024x383.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-42-300x112.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-42-768x288.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-42.png 1357w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>You should have in your file manager something close or similar to the one below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"452\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-43-1024x452.png\" alt=\"\" class=\"wp-image-18418\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-43-1024x452.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-43-300x133.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-43-768x339.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-43.png 1365w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 4: Add <code>.htaccess<\/code> file for Routing<br><\/strong><\/h3>\n\n\n\n<p>To handle client-side routing with React Router, add an <strong><code>.htaccess<\/code><\/strong> file to the public_html directory with the following content:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><strong><em>&lt;IfModule mod_rewrite.c>\n  RewriteEngine On\n  RewriteBase \/\n  RewriteRule ^index\\.html$ - &#91;L]\n  RewriteCond %{REQUEST_FILENAME} !-f\n  RewriteCond %{REQUEST_FILENAME} !-d\n  RewriteRule . \/index.html &#91;L]\n&lt;\/IfModule><\/em><\/strong><\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"338\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-44-1024x338.png\" alt=\"\" class=\"wp-image-18419\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-44-1024x338.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-44-300x99.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-44-768x253.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-44.png 1058w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>NOTE: The Above code (rewrite rule) also prevents your React App from displaying Error 404 on accessing other pages.  Ensure it is added.<\/em><\/strong><\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 5: Test Your Deployment<\/strong><\/h3>\n\n\n\n<p><br>Visit your domain in a browser to see your React app live. If you encounter a 404 error, refer previous <strong><code>step 4. <\/code><\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-45-1024x522.png\" alt=\"\" class=\"wp-image-18420\" srcset=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-45-1024x522.png 1024w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-45-300x153.png 300w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-45-768x391.png 768w, https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-45.png 1285w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Additional Guide.<\/strong><\/h4>\n\n\n\n<p>To easily manage, your app deployment, you may also consider automating this process using Github Actions. See guide below.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-embed wp-block-embed-embed\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"FtozpfYWAg\"><a href=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-push-changes-to-your-code-on-cpanel-using-github-actions-and-ftp\/\">How to push changes to your code on cpanel using github actions and FTP.<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; visibility: hidden;\" title=\"&#8220;How to push changes to your code on cpanel using github actions and FTP.&#8221; &#8212; \" src=\"https:\/\/truehost.com\/support\/knowledge-base\/how-to-push-changes-to-your-code-on-cpanel-using-github-actions-and-ftp\/embed\/#?secret=oNIYiqi3B1#?secret=FtozpfYWAg\" data-secret=\"FtozpfYWAg\" width=\"500\" height=\"282\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><strong>Conclusion<\/strong><\/h4>\n\n\n\n<p>Deploying a React app on cPanel is a simple and efficient process. By following this guide, you can have your app up and running in no time. Give it a try and share your experience in the comments below!<\/p>\n\n\n\n<p>All Done. Congratulations. You&#8217;ve successfully hosted your react App on cPanel.<\/p>\n\n\n\n<p>Happy Hosting!! <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Deploying a React app on cPanel is a straightforward process that can be completed in just a few steps. Whether you&#8217;re a beginner or an experienced developer, this guide will walk you through the entire process, from building your React app to making it live on cPanel. Prerequisites Before you begin, ensure you have the [&hellip;]<\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"doc_category":[1822,1878],"doc_tag":[],"class_list":["post-18412","docs","type-docs","status-publish","hentry","doc_category-cpanel","doc_category-get-all-your-cpanel-help"],"year_month":"2026-06","word_count":487,"total_views":"0","reactions":{"happy":"47","normal":"0","sad":"8"},"author_info":{"name":"Kibera","author_nicename":"dan-k","author_url":"https:\/\/truehost.com\/support\/author\/dan-k\/"},"doc_category_info":[{"term_name":"Cpanel","term_url":"https:\/\/truehost.com\/support\/docs-category\/cpanel\/"},{"term_name":"Cpanel","term_url":"https:\/\/truehost.com\/support\/docs-category\/get-all-your-cpanel-help\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Deploy a React App on cPanel: A Step-by-Step Guide -<\/title>\n<meta name=\"description\" content=\"Learn how to deploy or host a React app on cPanel with this step-by-step guide. Perfect for beginners, web developers and experienced users.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Deploy a React App on cPanel: A Step-by-Step Guide -\" \/>\n<meta property=\"og:description\" content=\"Learn how to deploy or host a React app on cPanel with this step-by-step guide. Perfect for beginners, web developers and experienced users.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/\" \/>\n<meta property=\"article:modified_time\" content=\"2025-01-13T08:11:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-38.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/deploy-react-app-on-cpanel\\\/\",\"url\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/deploy-react-app-on-cpanel\\\/\",\"name\":\"How to Deploy a React App on cPanel: A Step-by-Step Guide -\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/deploy-react-app-on-cpanel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/deploy-react-app-on-cpanel\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/image-38.png\",\"datePublished\":\"2025-01-13T07:52:12+00:00\",\"dateModified\":\"2025-01-13T08:11:46+00:00\",\"description\":\"Learn how to deploy or host a React app on cPanel with this step-by-step guide. Perfect for beginners, web developers and experienced users.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/deploy-react-app-on-cpanel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/deploy-react-app-on-cpanel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/deploy-react-app-on-cpanel\\\/#primaryimage\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/image-38.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2025\\\/01\\\/image-38.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.truehost.com\\\/support\\\/knowledge-base\\\/deploy-react-app-on-cpanel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/truehost.com\\\/support\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Deploy a React App on cPanel: A Step-by-Step Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#website\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"name\":\"\",\"description\":\"Help In a Click\",\"publisher\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/truehost.com\\\/support\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#organization\",\"name\":\"Truehost Kenya\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"contentUrl\":\"https:\\\/\\\/truehost.com\\\/support\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/cropped-image_2026-04-16_174808866.png\",\"width\":240,\"height\":48,\"caption\":\"Truehost Kenya\"},\"image\":{\"@id\":\"https:\\\/\\\/truehost.com\\\/support\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Deploy a React App on cPanel: A Step-by-Step Guide -","description":"Learn how to deploy or host a React app on cPanel with this step-by-step guide. Perfect for beginners, web developers and experienced users.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/","og_locale":"en_US","og_type":"article","og_title":"How to Deploy a React App on cPanel: A Step-by-Step Guide -","og_description":"Learn how to deploy or host a React app on cPanel with this step-by-step guide. Perfect for beginners, web developers and experienced users.","og_url":"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/","article_modified_time":"2025-01-13T08:11:46+00:00","og_image":[{"url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-38.png","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/","url":"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/","name":"How to Deploy a React App on cPanel: A Step-by-Step Guide -","isPartOf":{"@id":"https:\/\/truehost.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/#primaryimage"},"image":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/#primaryimage"},"thumbnailUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-38.png","datePublished":"2025-01-13T07:52:12+00:00","dateModified":"2025-01-13T08:11:46+00:00","description":"Learn how to deploy or host a React app on cPanel with this step-by-step guide. Perfect for beginners, web developers and experienced users.","breadcrumb":{"@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/#primaryimage","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-38.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2025\/01\/image-38.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.truehost.com\/support\/knowledge-base\/deploy-react-app-on-cpanel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/truehost.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Deploy a React App on cPanel: A Step-by-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/truehost.com\/support\/#website","url":"https:\/\/truehost.com\/support\/","name":"","description":"Help In a Click","publisher":{"@id":"https:\/\/truehost.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/truehost.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/truehost.com\/support\/#organization","name":"Truehost Kenya","url":"https:\/\/truehost.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","contentUrl":"https:\/\/truehost.com\/support\/wp-content\/uploads\/2026\/04\/cropped-image_2026-04-16_174808866.png","width":240,"height":48,"caption":"Truehost Kenya"},"image":{"@id":"https:\/\/truehost.com\/support\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/18412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/comments?post=18412"}],"version-history":[{"count":2,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/18412\/revisions"}],"predecessor-version":[{"id":18425,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/docs\/18412\/revisions\/18425"}],"wp:attachment":[{"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/media?parent=18412"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_category?post=18412"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/truehost.com\/support\/wp-json\/wp\/v2\/doc_tag?post=18412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}