title: How do I configure my .htaccess file for React App in Subdirectory?
body: <p>I want to host my react app in a subdirectory on my shared hosting account. Ie in the directory <code>domain.com/mydirectory/</code>. But when I type <code>domain.com/mydirectory/</code> in the search bar it opens the index of the directory &amp; not the React App itself.</p>
  
  <p>I have already created a build version for my app. Hence the index.html file is at the root of the directory with the static folder &amp; all the other contents that where created during the <code>react-build</code> script.</p>
  
  <p>How can I make it work properly ? How can I configure my .htaccess file or what fix should I consider ?</p>