# ### Tipps & Tricks: # https://www.ionos.de/digitalguide/hosting/hosting-technik/htaccess-tricks/ # # # ## WEITERLEITUNGEN # # Einfache Weiterleitung #Redirect / http://www.neue-domain.tld/ # # # Weiterleitung einzelner Dateien #Redirect /alte-seite.html neue-seite.html # # # # ## PHP Memory Limit #php_value memory_limit 128M # # # # ## Activates the Directory Listing (deactivated for security reasons) Options +Indexes # # # # ## Datei zum Regeln von IP-Bereichen #Order deny,allow #Deny from .aol.com #Deny from 192.168 #Allow from 192.168.220.102 # # # # ## Rewrite-Rule for showing the errordocument.html page whenever # ## a file or folder is not found, as well as when the following # ## HTML errors occur: 400, 401, 403, 404, and 500 #RewriteEngine On #RewriteCond %{REQUEST_FILENAME} !-f #RewriteCond %{REQUEST_FILENAME} !-d #RewriteRule (.*) /errordocument.html # #ErrorDocument 400 /errordocument.html #ErrorDocument 401 /errordocument.html #ErrorDocument 403 /errordocument.html #ErrorDocument 404 /errordocument.html #ErrorDocument 500 /errordocument.html