# BEGIN iThemes Security - Do not modify or remove this line
# iThemes Security Config Details: 2
	# پرونده‌های سیستمی محافظت شده - امنیت > تنظیمات > ترفندهای سیستم > پرونده‌های سیستمی
	<files .htaccess>
		<IfModule mod_litespeed.c>
			Order allow,deny
			Deny from all
		</IfModule>
	</files>
	<files readme.html>
		<IfModule mod_litespeed.c>
			Order allow,deny
			Deny from all
		</IfModule>
	</files>
	<files readme.txt>
		<IfModule mod_litespeed.c>
			Order allow,deny
			Deny from all
		</IfModule>
	</files>
	<files wp-config.php>
		<IfModule mod_litespeed.c>
			Order allow,deny
			Deny from all
		</IfModule>
	</files>

	# غیرفعال کردن مرور مستقیم پوشه‌ها - امنیت > تنظیمات > ترفندهای سیستم > مرور مستقیم پوشه‌ها
	Options -Indexes

	<IfModule mod_rewrite.c>
		RewriteEngine On

		# پرونده‌های سیستمی محافظت شده - امنیت > تنظیمات > ترفندهای سیستم > پرونده‌های سیستمی
		RewriteRule ^wp-admin/install\.php$ - [F]
		RewriteRule ^wp-admin/includes/ - [F]
		RewriteRule !^wp-includes/ - [S=3]
		RewriteRule ^wp-includes/[^/]+\.php$ - [F]
		RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F]
		RewriteRule ^wp-includes/theme-compat/ - [F]
		RewriteCond %{REQUEST_FILENAME} -f
		RewriteRule (^|.*/)\.(git|svn)/.* - [F]

		# غیرفعال کردن PHP در بارگذاری - امنیت > تنظیمات > ترفندهای سیستم > PHP در بارگذاری
		RewriteRule ^wp\-content/uploads/.*\.(?:php[1-7]?|pht|phtml?|phps)\.?$ - [NC,F]

		# غیرفعال کردن PHP در افزونه - امنیت > تنظیمات > ترفندهای سیستم > PHP در افزونه
		RewriteRule ^wp\-content/plugins/.*\.(?:php[1-7]?|pht|phtml?|phps)\.?$ - [NC,F]

		# غیرفعال کردن PHP در قالب - امنیت > تنظیمات > ترفندهای سیستم > PHP در قالب
		RewriteRule ^wp\-content/themes/.*\.(?:php[1-7]?|pht|phtml?|phps)\.?$ - [NC,F]
	</IfModule>

	# غیرفعال کردن XML-RPC - امنیت > تنظیمات > ترفندهای ورپرس > XML-RPC
	<files xmlrpc.php>
		<IfModule mod_litespeed.c>
			Order allow,deny
			Deny from all
		</IfModule>
	</files>
# END iThemes Security - Do not modify or remove this line

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
DirectoryIndex index.php
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>