github.com/krum110487/go-htaccess@v0.0.0-20240316004156-60641c8e7598/tests/data/htaccessFiles/.htaccess1 (about) 1 <FilesMatch "^php5?\.(ini|cgi)$"> 2 Order Deny,Allow 3 Deny from All 4 Allow from env=REDIRECT_STATUS 5 </FilesMatch> 6 7 AuthName "Under Development" 8 AuthUserFile /web/sitename.com/.htpasswd 9 AuthType basic 10 Require valid-user 11 Order deny,allow 12 Deny from all 13 Allow from 208.113.134.190 w3.org htmlhelp.com googlebot.com 14 Satisfy Any 15 16 RewriteCond %{REQUEST_URI} !^/robots\.txt$ [NC] 17 RewriteCond %{HTTP_HOST} !^www\.[a-z-]+\.[a-z]{2,6} [NC] 18 RewriteCond %{HTTP_HOST} ([a-z-]+\.[a-z]{2,6})$ [NC] 19 RewriteRule ^/(.*)$ https://%1/$1 [R=301,L]