# Redirect multisite.pages.health to Next.js app RewriteEngine On RewriteCond %{HTTP_HOST} ^multisite\.pages\.health$ [NC] RewriteCond %{REQUEST_URI} !^/nextjs_app/ RewriteRule ^(.*)$ /nextjs_app/$1 [L] # Redirect multisite.pages.health to its own PHP handler RewriteCond %{HTTP_HOST} ^multisite\.pages\.health$ [NC] RewriteRule ^(.*)$ /multisite_handler.php [L] # BEGIN WordPress Multisite RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / # Exclude multisite.pages.health from WordPress rules RewriteCond %{HTTP_HOST} !^multisite\.pages\.health$ [NC] RewriteRule ^index\.php$ - [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L] # END WordPress Multisite # BEGIN wtfdivi # END wtfdivi # Wordfence WAF php_value auto_prepend_file '/home/pagejega/public_html/wordfence-waf.php' php_value auto_prepend_file '/home/pagejega/public_html/wordfence-waf.php' Require all denied Order deny,allow Deny from all # END Wordfence WAF # SOFTACULOUS Block xmlrpc Require all denied # SOFTACULOUS Block xmlrpc End # SOFTACULOUS Block .htaccess and .htpasswd Require all denied # SOFTACULOUS Block .htaccess and .htpasswd End # SOFTACULOUS Block author scans RewriteEngine On RewriteBase / RewriteCond %{QUERY_STRING} (author=\d+) [NC] RewriteRule .* - [F] # SOFTACULOUS Block author scans End # SOFTACULOUS Block directory browsing Options -Indexes # SOFTACULOUS Block directory browsing End # SOFTACULOUS Block access sensitive files Require all denied # SOFTACULOUS Block access sensitive files End # SOFTACULOUS Enable bot protection RewriteEngine on RewriteCond %{HTTP_USER_AGENT} (?:virusbot|spambot|evilbot|acunetix|BLEXBot|domaincrawler\.com|LinkpadBot|MJ12bot/v|majestic12\.co\.uk|AhrefsBot|TwengaBot|SemrushBot|nikto|winhttp|Xenu\s+Link\s+Sleuth|Baiduspider|HTTrack|clshttp|harvest|extract|grab|miner|python-requests) [NC] RewriteRule ^(.*)$ http://no.access/ # SOFTACULOUS Enable bot protection End # BEGIN FRedirect_ErrorDocument ErrorDocument 404 /index.php?error=404 # END FRedirect_ErrorDocument # DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION BEGIN PassengerAppRoot "/home/pagejega/public_html/multisite.pages.health" PassengerBaseURI "/" PassengerNodejs "/home/pagejega/nodevenv/public_html/multisite.pages.health/20/bin/node" PassengerAppType node PassengerStartupFile server.js # DO NOT REMOVE. CLOUDLINUX PASSENGER CONFIGURATION END # DO NOT REMOVE OR MODIFY. CLOUDLINUX ENV VARS CONFIGURATION BEGIN SetEnv NODE_ENV production SetEnv PORT 3000 # DO NOT REMOVE OR MODIFY. CLOUDLINUX ENV VARS CONFIGURATION END