21 lines
493 B
ApacheConf
21 lines
493 B
ApacheConf
# Aktiviere Rewrite-Engine
|
|
<IfModule mod_rewrite.c>
|
|
RewriteEngine On
|
|
|
|
# 301 Redirects für alte URLs
|
|
Redirect 301 /geschenkkoerbe/ /index.html#services
|
|
Redirect 301 /anfrage/ /index.html#contact
|
|
</IfModule>
|
|
|
|
# Verhindere direkten Zugriff auf config.php
|
|
<Files "config.php">
|
|
Order Allow,Deny
|
|
Deny from all
|
|
</Files>
|
|
|
|
# Verstecke sensible Dateien im Root
|
|
<FilesMatch "^(\.env|composer\.json|composer\.lock|\.git)">
|
|
Order Allow,Deny
|
|
Deny from all
|
|
</FilesMatch>
|