Skip to content

Commit 1278390

Browse files
authored
Create Note.md
1 parent 9ee76a6 commit 1278390

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Router-Example/Note.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Router Important note.
2+
If you build a router with Elroid, add these so that when https://copy.reactmvc.ir/about is refreshed, you will not get a 404 error.
3+
<br>
4+
5+
For Apache
6+
```
7+
RewriteEngine On
8+
RewriteCond %{REQUEST_FILENAME} !-f
9+
RewriteRule ^(.*)$ index.html [L,QSA]
10+
```
11+
For Nginx
12+
```
13+
location / {
14+
try_files $uri $uri/ /index.html;
15+
}
16+
```
17+
Apache in the .htaccess file and Nginx in the nginx.conf file

0 commit comments

Comments
 (0)