<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # --- 100% bei SEOBility Weiterleitungscheck ! ----------------------
    #RewriteCond %{HTTP_HOST} !^www.gimp-handbuch.de$
    #RewriteRule ^(.*)$ https://www.gimp-handbuch.de/$1 [R=301,L]
    #RewriteCond %{SERVER_PORT} !=443
    #RewriteRule ^(.*)$ https://www.gimp-handbuch.de/$1 [R=301,L]
    # -------------------------------------------------------------------

    # Deny access to internal dirs and files by passing the URL to Pico
    RewriteRule ^(config|content|vendor|CHANGELOG\.md|composer\.(json|lock|phar))(/|$) index.php [L]
    RewriteRule (^\.|/\.)(?!well-known(/|$)) index.php [L]

    # Enable URL rewriting
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ index.php [L]

    <IfModule mod_env.c>
        # Let Pico know about available URL rewriting
        SetEnv PICO_URL_REWRITING 1
    </IfModule>
</IfModule>

# Prevent file browsing
Options -Indexes -MultiViews
