HTTPS ohne www

RewriteEngine On
RewriteCond %{HTTP_HOST} !^domain\.tld$ [NC]
RewriteRule (.*) https://domain.tld/$1 [R=301,L]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Zugriff auf eine Datei nur durch bestimmte User-Agents

<IfModule mod_setenvif.c>
<Files wp-login.php>
BrowserMatch "Safari" allowed
Order Deny,Allow
Deny from All
Allow from env=allowed
</Files>
</IfModule>

In diesem Beispiel werden für die Datei wp-login.php vom Server nur Anfragen akzeptiert, die als User-Agent “Safari” enthalten.