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.

diff --git a/Profice WebSite/scripts/add/send.php b/Profice WebSite/scripts/add/send.php index 963edbc..2090e22 100644 --- a/Profice WebSite/scripts/add/send.php +++ b/Profice WebSite/scripts/add/send.php @@ -44,12 +44,12 @@ if ($_SERVER['REQUEST_METHOD'] === 'OPTIONS') { // ========================================== // Environment -define('USE_PRODUCTION', false); // Use test webhook for debugging -define('DEBUG_MODE', true); // Enable debug to see errors +define('USE_PRODUCTION', true); // Use production webhook for live server +define('DEBUG_MODE', false); // Disable debug for production // N8N Webhooks -define('WEBHOOK_TEST', 'https://n8n.profice.de/webhook-test/8658d57e-2348-4046-90a5-7551708f8d50'); -define('WEBHOOK_PROD', 'https://n8n.profice.de/webhook/8658d57e-2348-4046-90a5-7551708f8d50'); +define('WEBHOOK_TEST', 'https://n8n.profice.de/webhook-test/d94ef798-3f43-46dd-8207-1e335e64518f'); +define('WEBHOOK_PROD', 'https://n8n.profice.de/webhook/d94ef798-3f43-46dd-8207-1e335e64518f'); define('WEBHOOK_URL', USE_PRODUCTION ? WEBHOOK_PROD : WEBHOOK_TEST); // Google Analytics diff --git a/Profice WebSite/sites/offers.html b/Profice WebSite/sites/offers.html index f3669dc..e25a5b3 100644 --- a/Profice WebSite/sites/offers.html +++ b/Profice WebSite/sites/offers.html @@ -62,7 +62,7 @@
- +
@@ -76,18 +76,18 @@
- +
- +
diff --git a/Profice WebSite/sites/website.html b/Profice WebSite/sites/website.html index d2ed60d..50fb8f2 100644 --- a/Profice WebSite/sites/website.html +++ b/Profice WebSite/sites/website.html @@ -69,15 +69,15 @@
🌐

Website Entwicklung

-

Moderne, responsive Webseiten, die konvertieren und Ihre Marke perfekt repräsentieren

+

Moderne, responsive Webseiten, die konvertieren und Ihre Marke perfekt repräsentieren

Unsere Webentwicklungsdienstleistungen

- Wir entwickeln maßgeschneiderte Websites, die nicht nur gut aussehen, sondern auch Ergebnisse liefern. - Von der Konzeption über das Design bis zur Implementierung und Wartung begleiten wir Sie durch den gesamten Prozess. + Wir entwickeln maßgeschneiderte Websites, die nicht nur gut aussehen, sondern auch Ergebnisse liefern. + Von der Konzeption über das Design bis zur Implementierung und Wartung begleiten wir Sie durch den gesamten Prozess.

@@ -88,7 +88,7 @@
🎨

Responsive Design

-

Perfekte Darstellung auf allen Geräten - von Desktop bis Mobile

+

Perfekte Darstellung auf allen Geräten - von Desktop bis Mobile

âš¡
@@ -98,12 +98,12 @@
🔒

SEO-Freundlich

-

Technische Grundlagen für gute Suchmaschinenplatzierungen

+

Technische Grundlagen für gute Suchmaschinenplatzierungen

🔧

CMS-Integration

-

Einfache Content-Verwaltung für Ihre Mitarbeiter

+

Einfache Content-Verwaltung für Ihre Mitarbeiter

🛡️
@@ -154,7 +154,7 @@
5

Support & Wartung

-

Laufende Optimierung und technische Unterstützung

+

Laufende Optimierung und technische Unterstützung

@@ -180,8 +180,8 @@
-

Bereit für Ihre neue Website?

-

Lassen Sie uns Ihr Projekt an und wir erstellen ein maßgeschneidertes Angebot.

+

Bereit für Ihre neue Website?

+

Lassen Sie uns Ihr Projekt an und wir erstellen ein maßgeschneidertes Angebot.

Projekt starten Mehr erfahren diff --git a/Profice WebSite/style/design.css b/Profice WebSite/style/design.css index 72ab474..e80907d 100644 --- a/Profice WebSite/style/design.css +++ b/Profice WebSite/style/design.css @@ -805,7 +805,7 @@ body { backdrop-filter: blur(2px); border: 1px solid rgba(34, 197, 94, 0.3); box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2); - margin-right: 80px; /* Move even further to the left */ + margin-right: 0px; /* Move even further to the left */ position: relative; }