Skip to content

Commit a9fcc61

Browse files
authored
Add more info about apache client side routing
After a revelation in facebook#2593 (comment)
1 parent 76ad76e commit a9fcc61

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 your `.htaccess` not working or you are using [Apache Tomcat](http://tomcat.apache.org/), you can learn more about it from [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)