Skip to content

Commit a0bc949

Browse files
viankakrisnaTimer
authored andcommitted
Add more info about apache client side routing (facebook#2666)
* Add more info about apache client side routing After a revelation in facebook#2593 (comment) * Update README.md
1 parent 657b3fd commit a0bc949

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/react-scripts/template/README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ This is because when there is a fresh page load for a `/todos/42`, the server lo
17511751
});
17521752
```
17531753
1754-
If you’re using [Apache](https://httpd.apache.org/), you need to create a `.htaccess` file in the `public` folder that looks like this:
1754+
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:
17551755
17561756
```
17571757
Options -MultiViews
@@ -1760,7 +1760,9 @@ If you’re using [Apache](https://httpd.apache.org/), you need to create a `.ht
17601760
RewriteRule ^ index.html [QSA,L]
17611761
```
17621762
1763-
It will get copied to the `build` folder when you run `npm run build`.
1763+
It will get copied to the `build` folder when you run `npm run build`.
1764+
1765+
If you’re using [Apache Tomcat](http://tomcat.apache.org/), you need to follow [this Stack Overflow answer](https://stackoverflow.com/a/41249464/4878474).
17641766
17651767
Now requests to `/todos/42` will be handled correctly both in development and in production.
17661768

0 commit comments

Comments
 (0)