Skip to content

Commit

Permalink
Add more info about apache client side routing (facebook#2666)
Browse files Browse the repository at this point in the history
* Add more info about apache client side routing

After a revelation in facebook#2593 (comment)

* Update README.md
  • Loading branch information
viankakrisna authored and morgs32 committed Sep 1, 2017
1 parent 515a0c2 commit eb4d2ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -1760,7 +1760,9 @@ If you’re using [Apache](https://httpd.apache.org/), you need to create a `.ht
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.
Expand Down

0 comments on commit eb4d2ae

Please sign in to comment.