Commit a0bc9493 authored by Ade Viankakrisna Fadlil's avatar Ade Viankakrisna Fadlil Committed by Joe Haddad
Browse files

Add more info about apache client side routing (#2666)

* Add more info about apache client side routing

After a revelation in https://github.com/facebookincubator/create-react-app/issues/2593#issuecomment-311729534

* Update README.md
parent 657b3fd6
3 merge requests!12191Lim.Pisey.168:/Identified - We are currently investigating reports of missing build logs. The issue has been identified and a resolution is in progress. We will provide a further update when available.Mar 21, 09:02 UTC,!12853brikk,!5717Automatically extract project file structure from build bundle file
Showing with 4 additions and 2 deletions
+4 -2
...@@ -1751,7 +1751,7 @@ This is because when there is a fresh page load for a `/todos/42`, the server lo ...@@ -1751,7 +1751,7 @@ This is because when there is a fresh page load for a `/todos/42`, the server lo
}); });
``` ```
If you’re using [Apache](https://httpd.apache.org/), you need to create a `.htaccess` file in the `public` folder that looks like this: If you’re using [Apache HTTP Server](https://httpd.apache.org/), you need to create a `.htaccess` file in the `public` folder that looks like this:
``` ```
Options -MultiViews Options -MultiViews
...@@ -1760,7 +1760,9 @@ If you’re using [Apache](https://httpd.apache.org/), you need to create a `.ht ...@@ -1760,7 +1760,9 @@ If you’re using [Apache](https://httpd.apache.org/), you need to create a `.ht
RewriteRule ^ index.html [QSA,L] RewriteRule ^ index.html [QSA,L]
``` ```
It will get copied to the `build` folder when you run `npm run build`. It will get copied to the `build` folder when you run `npm run build`.
If you’re using [Apache Tomcat](http://tomcat.apache.org/), you need to follow [this Stack Overflow answer](https://stackoverflow.com/a/41249464/4878474).
Now requests to `/todos/42` will be handled correctly both in development and in production. Now requests to `/todos/42` will be handled correctly both in development and in production.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment