Update README: tambah penjelasan URL rewrite (opsional)
This commit is contained in:
15
README.md
15
README.md
@@ -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)**
|
||||
|
||||
Reference in New Issue
Block a user