How to deploy a React basic Application in Apache Server?

Ask a question+

I’ve created a basic Create App where the basic React image is showing by using
npx create-react-app my-app.
Its created in local and runs fine.
I want to run it in server, so I applied npm run build in local. I got all the gist inside “build” folder.
Also created an .htaccess file by

Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [QSA,L]

The server is basically an Apache server.

Actually followed https://gist.github.com/ywwwtseng/63c36ccb58a25a09f7096bbb602ac1de

But it’s not working.

add comment

0 Answer

Your Answer