This content originally appeared on DEV Community and was authored by Manoj
Step 1 : Create .htaccess file in public folder and below content in it
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]
Step 2: Build app using npm or yarn
npm run build
or
yarn run build
Step 3: Upload content of build/ directory in to public_html/ directory on shared hosting
Done.
Please follow to get updated posts and hit like to motivate me
Thanks 😊🙏
This content originally appeared on DEV Community and was authored by Manoj
Manoj | Sciencx (2022-04-11T06:40:00+00:00) Deploy ReactJS app on shared hosting like GoDaddy, Hostinger etc.. Retrieved from https://www.scien.cx/2022/04/11/deploy-reactjs-app-on-shared-hosting-like-godaddy-hostinger-etc/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.