# --- SEO PERMALINKS REWRITE --- # 1. Sitemap rewrite ^/sitemap\.xml$ /index.php?p=sitemap last; # 2. Cron IndexNow rewrite ^/cron-indexnow/?$ /index.php?p=cron_indexnow last; # 3. Category (e.g., /category/hongkong) rewrite ^/category/([^/]+)/?$ /index.php?p=category&cat=$1 last; # 4. Search Results (e.g., /search/keyword) rewrite ^/search/([^/]+)/?$ /index.php?p=search&q=$1 last; # 5. API Search (Internal) rewrite ^/api/search/([^/]+)/?$ /index.php?p=api_search&q=$1 last; # 6. Read / Detail Page (e.g., /read/VIDEO_ID/slug-title) rewrite ^/read/([^/]+)/([^/]+)/?$ /index.php?p=read&id=$1&title=$2 last; # --- END SEO PERMALINKS ---