File: //home/ezoshosting.com/public_html/.htaccess
Options -Indexes
ErrorDocument 403 /old/blocked-archive.html
ErrorDocument 404 /404.html
<IfModule mod_alias.c>
# EZOS_ALIAS_LEGACY_SECURITY_ROUTING_20260531
# EZOS_BACKUP_RESTORE_LEGACY_REDIRECTS_20260602
RedirectMatch 410 (?i)^/\.git(/.*)?$
RedirectMatch 301 (?i)^/backup/?$ https://www.ezoshosting.com/security-data-sovereignty/#backup-restore-readiness
RedirectMatch 301 (?i)^/ezoshosting/i/(webglobe|gcc|modrewrite)[.]jpg$ https://www.ezoshosting.com/open-source-hosting/
RedirectMatch 301 (?i)^/ezoshosting/images/ezos/(phppgadmin|apache-handlers-manager)[.]png$ https://www.ezoshosting.com/open-source-hosting/
RedirectMatch 301 (?i)^/ezoshosting/images/ezos/cpanel-error-log[.]png$ https://www.ezoshosting.com/support/
RedirectMatch 301 (?i)^/ezoshosting/i/(squirrelmail|email)[.]jpg$ https://www.ezoshosting.com/open-source-hosting/#legacy-mailing-list-hosting
RedirectMatch 410 (?i)^/(xmlrpc\.php|wp-login\.php)$
RedirectMatch 410 (?i)^/wp-(admin|includes|json)(/.*)?$
RedirectMatch 410 (?i)^/wp-content/plugins/
RedirectMatch 410 (?i)^/uncategorized/
RedirectMatch 301 (?i)^/email-accounts/email-aliases/?$ https://www.ezoshosting.com/open-source-hosting/
RedirectMatch 301 (?i)^/knowledge-base/do-you-monitor-your-servers/?$ https://www.ezoshosting.com/support/
RedirectMatch 301 (?i)^/contact-me/?$ https://www.ezoshosting.com/support/
RedirectMatch 301 (?i)^/feed/?$ https://www.ezoshosting.com/feed.xml
RedirectMatch 301 (?i)^/new/domains\.php$ https://www.ezoshosting.com/domains/
RedirectMatch 301 (?i)^/domains\.php$ https://www.ezoshosting.com/domains/
RedirectMatch 301 (?i)^/sales/contact-us[.]html$ https://www.ezoshosting.com/contact-us/#benchmark-intake
RedirectMatch 301 (?i)^/knowledge-base/i-have-a-huge-mailing-list-can-you-host-it/?$ https://www.ezoshosting.com/open-source-hosting/#legacy-mailing-list-hosting
RedirectMatch 301 (?i)^/ezoshosting/i/mailman[.]jpg$ https://www.ezoshosting.com/open-source-hosting/#legacy-mailing-list-hosting
RedirectMatch 301 (?i)^/ezoshosting/i/urchin[.]jpg$ https://www.ezoshosting.com/open-source-hosting/#legacy-analytics-migration
RedirectMatch 301 (?i)^/domains/parked-domains/?$ https://www.ezoshosting.com/domains/
RedirectMatch 301 (?i)^/support/portal/cart\.php$ https://support.ezoshosting.com/cart/
RedirectMatch 301 (?i)^/features/miscellaneous/compare-prices[.]html$ https://www.ezoshosting.com/managed-local-ai/
RedirectMatch 301 (?i)^/e-mail/autoresponders/?$ https://www.ezoshosting.com/open-source-hosting/#legacy-mailing-list-hosting
RedirectMatch 301 (?i)^/ezoshosting/images/ezos/mx-record-manager[.]png$ https://www.ezoshosting.com/open-source-hosting/#legacy-mailing-list-hosting
RedirectMatch 301 (?i)^/features/e-mail/e-mail-authentication[.]html$ https://www.ezoshosting.com/open-source-hosting/#legacy-mailing-list-hosting
RedirectMatch 301 (?i)^/mailto/?$ https://www.ezoshosting.com/contact-us/#benchmark-intake
RedirectMatch 301 (?i)^/hosting-solutions/vps-hosting/attachment/virtual-private-server-hosting/?$ https://www.ezoshosting.com/gpu-infrastructure/
RedirectMatch 301 (?i)^/server/?$ https://www.ezoshosting.com/gpu-infrastructure/
RedirectMatch 301 (?i)^/storage/?$ https://www.ezoshosting.com/gpu-infrastructure/
RedirectMatch 301 (?i)^/tag/dedicated-servers/?$ https://www.ezoshosting.com/gpu-infrastructure/
RedirectMatch 301 (?i)^/tag/server-side/?$ https://www.ezoshosting.com/open-source-hosting/
RedirectMatch 301 (?i)^/blog/php-7-hosting-available-immediately/?$ https://www.ezoshosting.com/open-source-hosting/
# EZOS_DOMAIN_PRIVACY_LEGACY_REDIRECT_20260602
RedirectMatch 301 (?i)^/blog/sopa-stakeholders-try-to-limit-domain-privacy-with-icann/?$ https://www.ezoshosting.com/domains/
# EZOS_HIGH_INTENT_LEGACY_REDIRECTS_20260602
RedirectMatch 301 (?i)^/get-in-touch/?$ https://www.ezoshosting.com/contact-us/#benchmark-intake
RedirectMatch 301 (?i)^/about\.php$ https://www.ezoshosting.com/support/
RedirectMatch 301 (?i)^/apache-webserver/apache-handlers-manager/?$ https://www.ezoshosting.com/open-source-hosting/
RedirectMatch 301 (?i)^/knowledge-base/how-easy-is-your-signup-process-really/?$ https://support.ezoshosting.com/knowledgebase/
RedirectMatch 301 (?i)^/shop/uncategorized/comodo-sgc-ssl-certificate/?$ https://www.ezoshosting.com/security-data-sovereignty/
RedirectMatch 301 (?i)^/blog-de/aes-512-bit-verschluesselte-datensicherungslaufwerke/?$ https://www.ezoshosting.com/security-data-sovereignty/
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
# EZOS_LEGACY_SECURITY_ROUTING_20260531
# EZOS_BACKUP_RESTORE_LEGACY_REDIRECTS_20260602
RewriteRule ^\.git(/.*)?$ - [G,L,NC]
RewriteRule ^\.(agents|codex)(/.*)?$ - [G,L,NC]
RewriteRule ^backup/?$ /security-data-sovereignty/#backup-restore-readiness [R=301,L,NE,NC]
RewriteRule ^ezoshosting/i/(webglobe|gcc|modrewrite)[.]jpg$ /open-source-hosting/? [R=301,L,NC]
RewriteRule ^ezoshosting/images/ezos/(phppgadmin|apache-handlers-manager)[.]png$ /open-source-hosting/? [R=301,L,NC]
RewriteRule ^ezoshosting/images/ezos/cpanel-error-log[.]png$ /support/? [R=301,L,NC]
RewriteRule ^ezoshosting/i/(squirrelmail|email)[.]jpg$ /open-source-hosting/#legacy-mailing-list-hosting [R=301,L,NE,NC]
# High-noise WordPress and spam-era paths are intentionally gone on the static relaunch.
RewriteRule ^(xmlrpc\.php|wp-login\.php)$ - [G,L,NC]
RewriteRule ^wp-(admin|includes|json)(/.*)?$ - [G,L,NC]
RewriteRule ^wp-content/plugins/ - [G,L,NC]
RewriteRule ^uncategorized/ - [G,L,NC]
# High-intent legacy paths now land on current commercial/support pages.
RewriteRule ^email-accounts/email-aliases/?$ /open-source-hosting/? [R=301,L,NC]
RewriteRule ^knowledge-base/do-you-monitor-your-servers/?$ /support/? [R=301,L,NC]
RewriteRule ^contact-me/?$ /support/? [R=301,L,NC]
RewriteRule ^feed/?$ /feed.xml? [R=301,L,NC]
RewriteRule ^new/domains\.php$ /domains/? [R=301,L,NC]
RewriteRule ^domains\.php$ /domains/? [R=301,L,NC]
RewriteRule ^sales/contact-us[.]html$ /contact-us/#benchmark-intake [R=301,L,NE,NC]
RewriteRule ^knowledge-base/i-have-a-huge-mailing-list-can-you-host-it/?$ /open-source-hosting/#legacy-mailing-list-hosting [R=301,L,NE,NC]
RewriteRule ^ezoshosting/i/mailman[.]jpg$ /open-source-hosting/#legacy-mailing-list-hosting [R=301,L,NE,NC]
RewriteRule ^ezoshosting/i/urchin[.]jpg$ /open-source-hosting/#legacy-analytics-migration [R=301,L,NE,NC]
RewriteRule ^domains/parked-domains/?$ /domains/? [R=301,L,NC]
RewriteRule ^support/portal/cart\.php$ https://support.ezoshosting.com/cart/? [R=301,L,NE,NC]
RewriteRule ^features/miscellaneous/compare-prices[.]html$ /managed-local-ai/? [R=301,L,NC]
RewriteRule ^e-mail/autoresponders/?$ /open-source-hosting/#legacy-mailing-list-hosting [R=301,L,NE,NC]
RewriteRule ^ezoshosting/images/ezos/mx-record-manager[.]png$ /open-source-hosting/#legacy-mailing-list-hosting [R=301,L,NE,NC]
RewriteRule ^features/e-mail/e-mail-authentication[.]html$ /open-source-hosting/#legacy-mailing-list-hosting [R=301,L,NE,NC]
RewriteRule ^mailto/?$ /contact-us/#benchmark-intake [R=301,L,NE,NC]
RewriteRule ^hosting-solutions/vps-hosting/attachment/virtual-private-server-hosting/?$ /gpu-infrastructure/? [R=301,L,NC]
RewriteRule ^server/?$ /gpu-infrastructure/? [R=301,L,NC]
RewriteRule ^storage/?$ /gpu-infrastructure/? [R=301,L,NC]
RewriteRule ^tag/dedicated-servers/?$ /gpu-infrastructure/? [R=301,L,NC]
RewriteRule ^tag/server-side/?$ /open-source-hosting/? [R=301,L,NC]
RewriteRule ^blog/php-7-hosting-available-immediately/?$ /open-source-hosting/? [R=301,L,NC]
# EZOS_DOMAIN_PRIVACY_LEGACY_REDIRECT_20260602
RewriteRule ^blog/sopa-stakeholders-try-to-limit-domain-privacy-with-icann/?$ /domains/? [R=301,L,NC]
# EZOS_HIGH_INTENT_LEGACY_REDIRECTS_20260602
RewriteRule ^get-in-touch/?$ /contact-us/#benchmark-intake [R=301,L,NE,NC]
RewriteRule ^about\.php$ /support/? [R=301,L,NC]
RewriteRule ^apache-webserver/apache-handlers-manager/?$ /open-source-hosting/? [R=301,L,NC]
RewriteRule ^knowledge-base/how-easy-is-your-signup-process-really/?$ https://support.ezoshosting.com/knowledgebase/? [R=301,L,NE,NC]
RewriteRule ^shop/uncategorized/comodo-sgc-ssl-certificate/?$ /security-data-sovereignty/? [R=301,L,NC]
RewriteRule ^blog-de/aes-512-bit-verschluesselte-datensicherungslaufwerke/?$ /security-data-sovereignty/? [R=301,L,NC]
# EZOS_RAW_FILE_BLOCK
RewriteRule ^old/(wp-admin|wp-json)(/.*)?$ /old/index.php?ezos_archive_blocked=1 [L,QSA,NC]
RewriteRule ^old/(?!index\.php$).*\.php$ /old/index.php?ezos_archive_blocked=1 [L,QSA,NC]
RewriteRule ^old/.*(\.zip|\.gz|\.tgz|\.tar|\.bak|\.sql|\.log|\.ini|\.env|\.key|\.txt|wp-config\.php|readme\.html|license\.txt|error_log)$ /old/index.php?ezos_archive_blocked=1 [L,QSA,NC]
# EZOS_LEGACY_SEO_REDIRECTS
# Exact legacy fallbacks are materialized as files/directories so LiteSpeed does not preserve spam query strings on redirects.
# EZOS_CANONICAL_HOST
RewriteCond %{HTTPS} !=on [OR]
RewriteCond %{HTTP_HOST} !^www\.ezoshosting\.com$ [NC]
RewriteRule ^ https://www.ezoshosting.com%{REQUEST_URI} [R=301,L,NE]
</IfModule>
<IfModule mod_setenvif.c>
SetEnvIf Request_URI "^/old/" ezos_old_archive
</IfModule>
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
Header always set Referrer-Policy "strict-origin-when-cross-origin"
Header always set Permissions-Policy "camera=(), microphone=(), geolocation=()"
Header always set X-Robots-Tag "noindex, nofollow, noarchive" env=ezos_old_archive
</IfModule>
<Files "404.html">
<IfModule mod_headers.c>
Header always set X-Robots-Tag "noindex, nofollow, noarchive"
Header always set X-Content-Type-Options "nosniff"
</IfModule>
</Files>