Update README: tambah penjelasan URL rewrite (opsional)

This commit is contained in:
mwpn
2025-12-18 11:36:53 +07:00
parent 12c0c84b20
commit d9ab8a1f03

View File

@@ -60,6 +60,21 @@ Deploy ke web server (Apache/Nginx) dengan konfigurasi:
- Base URL: sesuai dengan domain production
- API Base URL: otomatis terdeteksi dari hostname
### URL Rewrite (Opsional)
**TIDAK PERLU URL rewrite** untuk aplikasi ini karena:
- Semua file HTML bisa diakses langsung (`dashboard.html`, `event.html`, `settings.html`)
- Tidak ada clean URLs atau SPA routing
- Struktur file sudah jelas dan mudah diakses
**Jika ingin clean URLs** (misalnya `/dashboard` tanpa `.html`), bisa gunakan:
- **Apache**: File `.htaccess` sudah disediakan (uncomment bagian clean URLs)
- **Nginx**: Gunakan `nginx.conf.example` sebagai referensi
File konfigurasi:
- `.htaccess` - Apache URL rewrite (opsional, sudah include security headers & cache)
- `nginx.conf.example` - Nginx configuration example
### Update di Server Production
**Cara 1: Menggunakan Script (Recommended)**