Skip to content

Commit e8f666c

Browse files
authored
Update README.md
1 parent 3778716 commit e8f666c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,22 @@ Each html file in this repository is an example.
77
## Contact the developer
88
[Telegram](https://t.me/h3dev)
99
<br><br>
10-
[Email](mailto:[email protected])
10+
[Email](mailto:[email protected])
11+
<hr>
12+
## Router Important note.
13+
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.
14+
<br>
15+
16+
For Apache
17+
```
18+
RewriteEngine On
19+
RewriteCond %{REQUEST_FILENAME} !-f
20+
RewriteRule ^(.*)$ index.html [L,QSA]
21+
```
22+
For Nginx
23+
```
24+
location / {
25+
try_files $uri $uri/ /index.html;
26+
}
27+
```
28+
Apache in the .htaccess file and Nginx in the nginx.conf file

0 commit comments

Comments
 (0)