# Deploy on aradmadadi.ir

## Upload backend

1. Upload **contents of** local `backend/` to your host document root (e.g. `public_html/`):
   - `api/`, `admin/`, `includes/`, `privacy.php`, `config.php`, `app-ads.txt`, …

2. MySQL: create database → import `database_cpanel.sql` → edit `config.php`

3. If PHP does not run, ensure `.htaccess` allows PHP (see `tnettime.htaccess` as reference).

## URLs (production)

| Item | URL |
|------|-----|
| Privacy | https://aradmadadi.ir/privacy.php |
| app-ads.txt | https://aradmadadi.ir/app-ads.txt |
| API | https://aradmadadi.ir/api/register.php |
| Admin | https://aradmadadi.ir/admin/ |

Play Console **Developer website:** `https://aradmadadi.ir`

Android `build.gradle.kts` uses these URLs.

## AdMob

- Register developer domain `aradmadadi.ir` in AdMob
- Ensure `app-ads.txt` is live at `https://aradmadadi.ir/app-ads.txt` (no `#` comments in file)

## After domain change

Rebuild release AAB for Play Store so the app points to the new API and privacy URLs:

```powershell
cd android
.\build.ps1 -Release -Bundle
```
