From 865c6ac1880a34ca93a09d04f0200ed5e1869e24 Mon Sep 17 00:00:00 2001
From: Ihor_Zhekov
Date: Fri, 6 Feb 2026 08:49:57 +0100
Subject: [PATCH] update webhook fix
---
Profice WebSite/.htaccess | 54 ++++++++++++++++-
Profice WebSite/DEPLOYMENT.md | 89 ++++++++++++++++++++++++++++
Profice WebSite/index.html | 2 +-
Profice WebSite/scripts/add/send.php | 8 +--
Profice WebSite/sites/offers.html | 10 ++--
Profice WebSite/sites/website.html | 18 +++---
Profice WebSite/style/design.css | 2 +-
7 files changed, 162 insertions(+), 21 deletions(-)
create mode 100644 Profice WebSite/DEPLOYMENT.md
diff --git a/Profice WebSite/.htaccess b/Profice WebSite/.htaccess
index 45552cb..77c5411 100644
--- a/Profice WebSite/.htaccess
+++ b/Profice WebSite/.htaccess
@@ -1 +1,53 @@
-Options -Indexes
\ No newline at end of file
+# Security - Disable directory listing
+Options -Indexes
+
+# Enable compression
+
+ AddOutputFilterByType DEFLATE text/plain
+ AddOutputFilterByType DEFLATE text/html
+ AddOutputFilterByType DEFLATE text/xml
+ AddOutputFilterByType DEFLATE text/css
+ AddOutputFilterByType DEFLATE application/xml
+ AddOutputFilterByType DEFLATE application/xhtml+xml
+ AddOutputFilterByType DEFLATE application/rss+xml
+ AddOutputFilterByType DEFLATE application/javascript
+ AddOutputFilterByType DEFLATE application/x-javascript
+
+
+# Set caching headers
+
+ ExpiresActive On
+ ExpiresByType text/css "access plus 1 month"
+ ExpiresByType application/javascript "access plus 1 month"
+ ExpiresByType image/png "access plus 1 month"
+ ExpiresByType image/jpg "access plus 1 month"
+ ExpiresByType image/jpeg "access plus 1 month"
+ ExpiresByType image/gif "access plus 1 month"
+ ExpiresByType image/ico "access plus 1 month"
+ ExpiresByType image/svg+xml "access plus 1 month"
+ ExpiresByType text/html "access plus 1 hour"
+
+
+# Security headers
+
+ Header always set X-Content-Type-Options nosniff
+ Header always set X-Frame-Options DENY
+ Header always set X-XSS-Protection "1; mode=block"
+ Header always set Referrer-Policy "strict-origin-when-cross-origin"
+
+
+# PHP settings (if needed)
+
+ php_flag display_errors Off
+ php_value error_reporting E_ALL & ~E_DEPRECATED & ~E_STRICT
+
+
+
+ php_flag display_errors Off
+ php_value error_reporting E_ALL & ~E_DEPRECATED & ~E_STRICT
+
+
+# Force HTTPS (uncomment if you have SSL certificate)
+# RewriteEngine On
+# RewriteCond %{HTTPS} off
+# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
\ No newline at end of file
diff --git a/Profice WebSite/DEPLOYMENT.md b/Profice WebSite/DEPLOYMENT.md
new file mode 100644
index 0000000..34c76a9
--- /dev/null
+++ b/Profice WebSite/DEPLOYMENT.md
@@ -0,0 +1,89 @@
+# Profice Website - Server Deployment Guide
+
+## 🚀 Ready for Production
+
+Your website has been prepared for server hosting with the following optimizations:
+
+### ✅ Completed Setup
+
+#### 1. **Webhook Configuration Updated**
+- ✅ Switched to production webhook URLs
+- ✅ Debug mode disabled for security
+- ✅ Using correct N8N webhook IDs
+
+#### 2. **Server Security & Performance (.htaccess)**
+- ✅ Directory listing disabled
+- ✅ GZIP compression enabled
+- ✅ Browser caching configured
+- ✅ Security headers set
+- ✅ PHP error display disabled
+- ✅ HTTPS redirect ready (uncomment when SSL is active)
+
+#### 3. **Character Encoding Fixed**
+- ✅ All German special characters corrected
+- ✅ UTF-8 encoding properly configured
+
+#### 4. **File Structure Clean**
+- ✅ Test files removed
+- ✅ Production-ready configuration
+
+## 📁 Files to Upload
+
+Upload the entire `Profice WebSite` folder to your server:
+
+```
+Profice WebSite/
+├── .htaccess # Server configuration
+├── index.html # Homepage
+├── sites/ # Subpages
+│ ├── offers.html
+│ ├── leads.html
+│ ├── website.html
+│ ├── ki-integration.html
+│ └── automatisation.html
+├── scripts/ # Backend functionality
+│ └── add/
+│ └── send.php # Webhook handler
+├── style/ # CSS files
+├── images/ # Image assets
+└── components/ # Reusable components
+```
+
+## 🔧 Server Requirements
+
+### Minimum Requirements:
+- ✅ PHP 7.4+ (recommended 8.0+)
+- ✅ Apache server with .htaccess support
+- ✅ cURL extension enabled
+- ✅ JSON extension enabled
+
+### Optional (for better performance):
+- SSL certificate (HTTPS)
+- GZIP compression support
+- Expires module for caching
+
+## 🌐 After Upload
+
+1. **Test the contact form** - Submit a test request
+2. **Check webhook delivery** - Verify N8N receives requests
+3. **Test all pages** - Ensure proper navigation
+4. **Enable HTTPS** (if available) - Uncomment lines 50-53 in .htaccess
+
+## 🔒 Security Notes
+
+- All sensitive data (webhooks, tokens) are stored in `send.php`
+- Debug mode is disabled in production
+- Security headers are configured
+- Directory listing is disabled
+
+## 📞 Support
+
+If you encounter issues:
+1. Check server error logs
+2. Verify PHP extensions (cURL, JSON)
+3. Test webhook URLs manually
+4. Ensure file permissions are correct (755 for folders, 644 for files)
+
+---
+
+**Your website is now ready for production deployment! 🎉**
diff --git a/Profice WebSite/index.html b/Profice WebSite/index.html
index 2be8730..0927bfe 100644
--- a/Profice WebSite/index.html
+++ b/Profice WebSite/index.html
@@ -88,7 +88,7 @@
KI-Telefonassistenten, Chatbots und interne KI-Systeme. Integriert in eure bestehenden Tools.
- Für Unternehmen, die wachsen wollen ohne mehr Personal einzustellen.
+ Für Unternehmen, die wachsen wollen ohne mehr Personal einzustellen.