Umstellung von HTML auf PHP für die Hauptseiten: Entfernen der HTML-Dateien (index.html, about.html, contact.html, vpc.html, vps.html, mail-gateway.html, webhosting.html) und Implementierung von PHP-Dateien (index.php, about.php, contact.php, vpc.php, vps.php, mail-gateway.php, webhosting.php). Anpassung der .htaccess-Datei zur Unterstützung von HTML zu PHP Weiterleitungen. Aktualisierung der Links in den Header- und Footer-Dateien auf die neuen PHP-Seiten.

This commit is contained in:
Samuel Müller
2025-08-01 15:01:28 +02:00
parent 5088da82e9
commit 65ff0da7a9
18 changed files with 397 additions and 3160 deletions

View File

@@ -16,6 +16,20 @@
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?hexahost\.de$ [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# HTML zu PHP Weiterleitungen
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^\.]+)\.html$ $1.php [L,R=301]
# Direkte HTML zu PHP Weiterleitungen für bekannte Seiten
RewriteRule ^index\.html$ index.php [L,R=301]
RewriteRule ^about\.html$ about.php [L,R=301]
RewriteRule ^contact\.html$ contact.php [L,R=301]
RewriteRule ^vpc\.html$ vpc.php [L,R=301]
RewriteRule ^vps\.html$ vps.php [L,R=301]
RewriteRule ^webhosting\.html$ webhosting.php [L,R=301]
RewriteRule ^mail-gateway\.html$ mail-gateway.php [L,R=301]
</IfModule>
# Konfigurationsdateien schützen