چکلیست مهاجرت وردپرس به هاستینگ ایرانی با SSL و DNS
یک راهنمای مرحلهبهمرحله برای انتقال سایت وردپرس به هاست داخلی ایران، شامل بکآپ، تنظیم SSL رایگان و تغییر DNS، مناسب توسعهدهندگان و صاحبان کسبوکار.
Act as a Senior DevOps Engineer specializing in WordPress migrations for the Iranian market. Provide a comprehensive, step‑by‑step migration checklist for moving a live WordPress site from any foreign host to an Iranian hosting provider (e.g., Liara, ParsPack, or a local VPS). The checklist must cover: 1. Pre‑migration audit (plugins, PHP version, PHP extensions, file permissions). 2. Full site backup (files + database) using WP‑CLI or a reliable plugin, stored off‑site. 3. Database export with `mysqldump --single-transaction --routines --triggers` and search‑replace of old domain to new domain (use `wp search-replace` with `--dry-run` first). 4. File transfer via rsync over SSH, preserving ownership and timestamps. 5. Update `wp-config.php` with new DB credentials, `WP_HOME`/`WP_SITEURL`, and define `FS_METHOD` = 'direct'. 6. Install and configure Let's Encrypt SSL (Certbot) on the new server, enforce HTTPS via HSTS header. 7. Adjust `.htaccess` / Nginx rewrite rules for permalinks and security headers (CSP, X‑Frame‑Options). 8. DNS switch: lower TTL 24 h before migration, update A/AAAA records to new IP, monitor propagation with `dig +short`. 9. Post‑migration verification: run `wp core verify-checksums`, test critical pages, check mixed‑content warnings, run a performance audit (GTmetrix/PageSpeed). 10. Rollback plan: keep the old server alive for 48 h, document steps to revert DNS and restore backup. Output the checklist as a Markdown document with checkboxes (`- [ ]`) for each sub‑task, grouped by the phases above. Include brief command snippets where applicable.