Edit File: .htaccess
# BEGIN WpFastestCache # Modified Time: 05-05-25 22:13:20 <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTPS} =on RewriteCond %{HTTP_HOST} ^rightyatra.com # Start WPFC Exclude RewriteCond %{REQUEST_URI} !tve=true [NC] # End WPFC Exclude # Start_WPFC_Exclude_Admin_Cookie RewriteCond %{HTTP:Cookie} !wordpress_logged_in_[^\=]+\=devotionalpoint # End_WPFC_Exclude_Admin_Cookie RewriteCond %{HTTP_HOST} ^rightyatra.com RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WP_FASTEST_CACHE_CSS_VALIDATOR|Twitterbot|LinkedInBot|WhatsApp|Mediatoolkitbot) RewriteCond %{HTTP_USER_AGENT} !(WP\sFastest\sCache\sPreload(\siPhone\sMobile)?\s*Bot) RewriteCond %{REQUEST_METHOD} !POST RewriteCond %{REQUEST_URI} !(\/){2,} RewriteCond %{THE_REQUEST} !(\/){2,} RewriteCond %{REQUEST_URI} \/$ RewriteCond %{QUERY_STRING} !.+ RewriteCond %{HTTP:Cookie} !comment_author_ RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC] RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or] RewriteCond /home/u855342564/domains/rightyatra.com/public_html/wp-content/cache/all/$1/index.html -f RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L] </IfModule> <FilesMatch "index\.(html|htm)$"> AddDefaultCharset UTF-8 <ifModule mod_headers.c> FileETag None Header unset ETag Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate" Header set Pragma "no-cache" Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT" </ifModule> </FilesMatch> # END WpFastestCache # BEGIN WebARX #BASIC ID=1 RedirectMatch 409 .(htaccess|htpasswd|errordocs|logs)$ ServerSignature Off <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC] RewriteRule ^readme*.*html$ index.php?webarx_fpage=101 [L,QSA] RewriteRule ^license*.*txt$ index.php?webarx_fpage=102 [L,QSA] RewriteRule ^wp-config*.*php$ index.php?webarx_fpage=103 [L,QSA] </IfModule> #BASIC #BLOCK WP FILE ACCESS ID=2 # Block the include-only files. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC] RewriteRule ^wp-admin/includes/ index.php?webarx_fpage=201 [NC,L] RewriteRule ^wp-includes/[^/]+.php$ index.php?webarx_fpage=202 [NC,L] RewriteRule ^wp-content/uploads/(.*).php$ index.php?webarx_fpage=202 [NC,L] RewriteRule ^wp-includes/js/tinymce/langs/.+.php index.php?webarx_fpage=203 [NC,L] RewriteRule ^wp-includes/theme-compat/ index.php?webarx_fpage=204 [NC,L] </IfModule> #BLOCK WP FILE ACCESS #BLOCK DEBUG LOG ACCESS <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^debug*.*log$ index.php?webarx_fpage=502 [L,QSA] </IfModule> #BLOCK DEBUG LOG ACCESS #DISABLE INDEX VIEWS Options -Indexes #DISABLE INDEX VIEWS #FORBID PROXY COMMENT POSTING ID=7 <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC] RewriteCond %{REQUEST_METHOD} ^POST RewriteCond %{HTTP:VIA} !^$ [OR] RewriteCond %{HTTP:FORWARDED} !^$ [OR] RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR] RewriteCond %{HTTP:X_FORWARDED_HOST} !^$ [OR] RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR] RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR] RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$ RewriteRule wp-comments-post\.php index.php?webarx_fpage=7 [NC] </IfModule> #FORBID PROXY COMMENT POSTING #WPSCAN ID=19 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REMOTE_ADDR} !=18.221.197.243 RewriteRule ^(.*)/plugins/(.*)readme\.(txt|html)$ index.php?webarx_fpage=19 [NC,L] </IfModule> #WPSCAN # END WebARX # BEGIN LSCACHE # END LSCACHE # BEGIN NON_LSCACHE # END NON_LSCACHE # BEGIN Really Simple SSL Redirect 5.3.5 <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} !=on [NC] RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache) RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/ RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] </IfModule> # END Really Simple SSL Redirect # BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <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 # BEGIN LiteSpeed # The directives (lines) between "BEGIN LiteSpeed" and "END LiteSpeed" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule Litespeed> SetEnv noabort 1 </IfModule> # END LiteSpeed
Back