ابزار رایگانFree tool
سازندهٔ فایل .htaccess.htaccess generator
ریدایرکت به HTTPS، www، هدرهای امنیتی، کش مرورگر، فشردهسازی و محافظت وردپرس؛ گزینهها را تیک بزنید و کد آماده را در هاست cPanel بگذارید.HTTPS and www redirects, security headers, browser caching, compression and WordPress protection. Tick the options and paste the code into your cPanel hosting.
ریدایرکتRedirects
امنیتSecurity
سرعتSpeed
وردپرسWordPress
فایل .htaccess.htaccess
کجا بگذارم؟Where does it go?
- در cPanel، File Manager را باز کنید و به public_html بروید. از Settings گزینهٔ «Show Hidden Files» را روشن کنید.In cPanel File Manager, open public_html and enable “Show Hidden Files”.
- اول از فایل .htaccess فعلی یک کپی بگیرید (Copy با اسم .htaccess.bak).First back up the current .htaccess.
- کد را بالای فایل بچسبانید. اگر وردپرس است، بخش
# BEGIN WordPressرا دست نزنید و کد را بالای آن بگذارید.Paste the code at the top. Keep any# BEGIN WordPressblock below it. - سایت را در یک پنجرهٔ ناشناس باز کنید. اگر خطای ۵۰۰ دیدید، فایل بکاپ را برگردانید و گزینهها را یکییکی امتحان کنید.Open the site in a private window. On a 500 error, restore the backup.
- نتیجه را با چک سلامت سایت ببینید.Verify with the health check.