RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^1\.2\.3\.4$
RewriteRule .* http://www.google.de [R=301,L]
Tag: web
.htaccess redirect subpath to 403
returns a 403 errorcode for the subpath “kontaktieren-sie-uns”
RedirectMatch 403 /kontaktieren-sie-uns
301 redirect in .htaccess with .well-known exception (let’s encrypt)
RewriteEngine on
RewriteRule ^\.well-known/.+ - [L]
Redirect 301 / https://DOMAIN.COM/