0x1998 - MANAGER
Düzenlenen Dosya: .htaccess.bk
suPHP_ConfigPath /home2/rozbanoc/public_html # BEGIN WordPress # دستورالعملهای (خطوط) بین "BEGIN WordPress" و "END WordPress" # به طور پویا تولید شدهاند، و فقط باید به وسیلهٔ صافیهای وردرپرس ویرایش شوند. # هر تغییری در دستورالعملهای بین این نشانگرها بازنویشی خواهند شد. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress # ======================== # WEBP OPTIMIZATION # ======================== <IfModule mod_rewrite.c> RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_FILENAME}\.webp -f RewriteRule ^(.*)\.(jpe?g|png)$ $1.webp [T=image/webp,L] </IfModule> # ======================== # DEFER JAVASCRIPT FILES # ======================== <IfModule mod_rewrite.c> # فقط برای صفحات عمومی (نه admin) RewriteCond %{REQUEST_URI} !(wp-admin|wp-login|xmlrpc\.php) [NC] RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|png|gif|webp|css|js|pdf|xml|txt)$ [NC] RewriteRule .* - [E=DEFER_SCRIPTS:1] </IfModule> <IfModule mod_substitute.c> # تعویق انداختن JS فایلها AddOutputFilterByType SUBSTITUTE text/html Substitute "s|<script([^>]*?)src=['\"]([^'\"]+\.js)['\"]([^>]*?)>|$0 defer |i" # حذف defer از فایلهای حیاتی Substitute "s| defer |>|i" "expr=%{REQUEST_URI} =~ m#(jquery|wp-embed|wp-includes/js/jquery)#" # async برای فایلهای آنالیتیکس Substitute "s| defer | async |i" "expr=%{REQUEST_URI} =~ m#(analytics|gtag|facebook|disqus|ads)#" </IfModule> # ======================== # SECURITY HEADERS # ======================== <IfModule mod_headers.c> Header set X-XSS-Protection "1; mode=block" Header set X-Content-Type-Options "nosniff" Header set X-Frame-Options "SAMEORIGIN" Header set Referrer-Policy "strict-origin-when-cross-origin" Header set Permissions-Policy "geolocation=(),midi=(),sync-xhr=(),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()" <FilesMatch "\.webp$"> Header set Cache-Control "public, max-age=31536000, immutable" Header set Expires "access plus 1 year" Header append Vary "Accept" </FilesMatch> # هدر برای تشخیص Header set X-JS-Loading "deferred" env=DEFER_SCRIPTS </IfModule> # ======================== # GZIP COMPRESSION # ======================== <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/json AddOutputFilterByType DEFLATE application/font-woff AddOutputFilterByType DEFLATE application/font-woff2 AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/woff AddOutputFilterByType DEFLATE font/woff2 AddOutputFilterByType DEFLATE image/svg+xml SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|webp|avif)$ no-gzip SetEnvIfNoCase Request_URI \.(?:mp4|webm|ogg)$ no-gzip SetEnvIfNoCase Request_URI \.(?:exe|zip|gz|bz2|rar|7z)$ no-gzip SetEnvIfNoCase Request_URI \.pdf$ no-gzip SetEnvIfNoCase Request_URI \.webp$ no-gzip BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html </IfModule> # ======================== # BROWSER CACHING # ======================== <IfModule mod_expires.c> ExpiresActive On ExpiresDefault "access plus 1 month" <FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|webp|avif|svg|svgz|mp4|webm|ogg|mp3|wav|swf)$"> ExpiresDefault "access plus 1 year" Header set Cache-Control "public, immutable" </FilesMatch> <FilesMatch "\.(woff|woff2|ttf|otf|eot)$"> ExpiresDefault "access plus 6 months" Header set Cache-Control "public, immutable" </FilesMatch> <FilesMatch "\.(css|js)$"> ExpiresDefault "access plus 1 month" Header set Cache-Control "public, must-revalidate" </FilesMatch> <FilesMatch "\.(html|htm|xhtml|php)$"> ExpiresDefault "access plus 1 week" Header set Cache-Control "public, must-revalidate" </FilesMatch> <FilesMatch "(wp-admin|wp-login|xmlrpc)\.php$"> ExpiresActive Off Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0" Header set Pragma "no-cache" </FilesMatch> </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/css "access plus 1 month" ExpiresByType text/x-javascript "access plus 1 month" ExpiresByType image/webp "access plus 1 year" </IfModule> # ======================== # LITESPEED OPTIMIZATION # ======================== <IfModule LiteSpeed> RewriteCond %{REQUEST_URI} \.(jpg|jpeg|png|gif|webp)$ RewriteRule .* - [E=cache-control:max-age=31536000] RewriteCond %{HTTP_ACCEPT} image/webp RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}.webp -f RewriteRule ^(.*)$ $1.webp [L] </IfModule> <IfModule mod_headers.c> <FilesMatch "jet-listing-dynamic-image__img"> Header set Cache-Control "public, max-age=31536000, immutable" Header set Timing-Allow-Origin "*" </FilesMatch> <FilesMatch "\.webp$"> Header set Content-Type "image/webp" </FilesMatch> </IfModule> # BEGIN cPanel-generated php ini directives <IfModule php7_module> php_value upload_max_filesize 96M php_value post_max_size 64M php_value max_execution_time 240 php_value max_input_time 300 php_value memory_limit 1024M php_value max_input_vars 10000 </IfModule> <IfModule lsapi_module> php_value upload_max_filesize 96M php_value post_max_size 64M php_value max_execution_time 240 php_value max_input_time 300 php_value memory_limit 512M php_value max_input_vars 10000 </IfModule> php_value date.timezone "Asia/Tehran" # END cPanel-generated php ini directives # php -- BEGIN cPanel-generated handler <IfModule mime_module> AddHandler application/x-httpd-ea-php81___lsphp .php .php8 .phtml </IfModule> # php -- END cPanel-generated handler RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://rozbano.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://rozbano.com$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.rozbano.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.rozbano.com$ [NC] RewriteCond %{HTTP_REFERER} !^https://rozbano.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://rozbano.com$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.rozbano.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^https://www.rozbano.com$ [NC] RewriteRule .*\.(webp|jpg|jpeg|gif|png|bmp)$ - [F,NC]
geri dön