Ganti index.php menjadi index.html untuk menghindari redirect loop PHP
This commit is contained in:
@@ -3,8 +3,9 @@
|
||||
## Masalah
|
||||
|
||||
Dari curl test:
|
||||
|
||||
```
|
||||
HTTP/2 302
|
||||
HTTP/2 302
|
||||
location: ../index.php
|
||||
```
|
||||
|
||||
@@ -39,11 +40,13 @@ cat /etc/nginx/conf.d/retribusi.conf
|
||||
```
|
||||
|
||||
Pastikan ada:
|
||||
|
||||
```nginx
|
||||
root /www/wwwroot/retribusi.btekno.cloud/retribusi/public;
|
||||
```
|
||||
|
||||
**BUKAN**:
|
||||
|
||||
```nginx
|
||||
root /www/wwwroot/retribusi.btekno.cloud/retribusi; # SALAH!
|
||||
```
|
||||
@@ -79,4 +82,3 @@ Seharusnya sekarang tidak ada redirect 302 lagi.
|
||||
- [ ] Nginx sudah di-reload
|
||||
- [ ] Test curl tidak ada redirect 302
|
||||
- [ ] Browser cache sudah di-clear
|
||||
|
||||
|
||||
Reference in New Issue
Block a user