From 8ec1ed5105c2fd090d0c4543e2bad7a63cae586b Mon Sep 17 00:00:00 2001 From: "Torsten Schulz (local)" Date: Fri, 28 Nov 2025 10:26:10 +0100 Subject: [PATCH] Enhance SEO by updating meta tags for better indexing and link following, and improve page metadata management in showPartnerSites function. --- rebuild_and_test.sh | 27 +++++++++++++++++++++++++++ test_robots_tag.sh | 25 +++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 rebuild_and_test.sh create mode 100755 test_robots_tag.sh diff --git a/rebuild_and_test.sh b/rebuild_and_test.sh new file mode 100644 index 0000000..1327287 --- /dev/null +++ b/rebuild_and_test.sh @@ -0,0 +1,27 @@ +#!/bin/bash +# Skript zum Neubauen und Testen der robots Meta-Tag Änderung + +echo "=== 1. Binary neu bauen ===" +cd /home/torsten/singlechat || exit 1 +cmake --build build -j2 + +if [ $? -ne 0 ]; then + echo "FEHLER: Build fehlgeschlagen!" + exit 1 +fi + +echo -e "\n=== 2. Binary nach /opt/ypchat/bin/ kopieren ===" +sudo cp build/singlechat.wt /opt/ypchat/bin/singlechat.wt + +echo -e "\n=== 3. Service neu starten ===" +sudo systemctl restart ypchat.service +sleep 3 + +echo -e "\n=== 4. Service-Status prüfen ===" +sudo systemctl status ypchat.service --no-pager | grep -E "Active|since" | head -2 + +echo -e "\n=== 5. robots Meta-Tag testen ===" +./test_robots_tag.sh + +echo -e "\n=== Fertig! ===" + diff --git a/test_robots_tag.sh b/test_robots_tag.sh new file mode 100755 index 0000000..b3ccaf4 --- /dev/null +++ b/test_robots_tag.sh @@ -0,0 +1,25 @@ +#!/bin/bash +# Test-Skript zum Prüfen des robots Meta-Tags + +echo "=== Test 1: Normaler Browser (Chrome) ===" +curl -s -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" \ + https://www.ypchat.net/ | grep -i "meta.*robots" | head -1 + +echo -e "\n=== Test 2: Googlebot ===" +curl -s -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" \ + https://www.ypchat.net/ | grep -i "meta.*robots" | head -1 + +echo -e "\n=== Test 3: Google-InspectionTool ===" +curl -s -A "Google-InspectionTool" \ + https://www.ypchat.net/ | grep -i "meta.*robots" | head -1 + +echo -e "\n=== Test 4: /partners Seite (Chrome) ===" +curl -s -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" \ + https://www.ypchat.net/partners | grep -i "meta.*robots" | head -1 + +echo -e "\n=== Test 5: /partners Seite (Googlebot) ===" +curl -s -A "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" \ + https://www.ypchat.net/partners | grep -i "meta.*robots" | head -1 + +echo -e "\n=== Erwartetes Ergebnis: index,follow ===" +