diff --git a/client/index.html b/client/index.html
index f80d953..6795a09 100644
--- a/client/index.html
+++ b/client/index.html
@@ -3,36 +3,36 @@
Datenschutzerklärung für Website und App
- Diese Datenschutzerklärung gilt für die Website und die Android-App von SingleChat beziehungsweise YPChat unter
- der Domain www.ypchat.net.
+ Diese Datenschutzerklärung gilt für die Website und die Android-App von SingleChat unter
+ der Domain www.single-chat.net.
1. Verantwortlicher
diff --git a/client/src/views/SeoLandingView.vue b/client/src/views/SeoLandingView.vue
new file mode 100644
index 0000000..a64170b
--- /dev/null
+++ b/client/src/views/SeoLandingView.vue
@@ -0,0 +1,177 @@
+
+
+
+
+
+
+ Single-Chat.net
+ {{ landing.heading }}
+ {{ landing.intro }}
+
+
+ {{ link.label }}
+
+
+
+
+
+
+ {{ section.title }}
+ {{ section.text }}
+
+
+
+
+ Passende Themen im Single Chat
+
+ Viele Nutzer suchen nach einem kostenlosen Single Chat, einem Chat ohne lange Anmeldung oder einem Single Treff
+ fuer neue Kontakte. SingleChat buendelt diese Einstiege auf einer Plattform: schnell starten, privat schreiben,
+ respektvoll bleiben.
+
+
+ - Kostenloser Single Chat
+ - Single Chat ohne Anmeldung
+ - Single Treff Chat
+
+
+
+
+
+
+
+
+
+
+
diff --git a/server/index.js b/server/index.js
index 1b2e86d..8947793 100644
--- a/server/index.js
+++ b/server/index.js
@@ -20,12 +20,12 @@ const server = createServer(app);
const NODE_ENV = process.env.NODE_ENV || 'development';
const PORT = process.env.PORT || (NODE_ENV === 'production' ? 4000 : 3300);
const IS_PRODUCTION = NODE_ENV === 'production';
-const PRIMARY_HOST = 'www.ypchat.net';
-const LEGACY_HOSTS = new Set(['ypchat.net']);
+const PRIMARY_HOST = 'www.single-chat.net';
+const LEGACY_HOSTS = new Set(['single-chat.net', 'ypchat.net', 'www.ypchat.net']);
// CORS-Origins konfigurieren
const allowedOrigins = IS_PRODUCTION
- ? ['https://ypchat.net', 'https://www.ypchat.net']
+ ? ['https://single-chat.net', 'https://www.single-chat.net', 'https://ypchat.net', 'https://www.ypchat.net']
: ['http://localhost:5175', 'http://127.0.0.1:5175'];
// Socket.IO auf dem gleichen HTTP-Server wie Express
diff --git a/server/routes-seo.js b/server/routes-seo.js
index fa24313..5fbf75b 100644
--- a/server/routes-seo.js
+++ b/server/routes-seo.js
@@ -2,7 +2,7 @@ import { readFileSync, existsSync } from 'fs';
import { join, resolve } from 'path';
import { loadFeedback } from './feedback-store.js';
-const SITE_URL = 'https://www.ypchat.net';
+const SITE_URL = 'https://www.single-chat.net';
const DEFAULT_IMAGE = `${SITE_URL}/static/favicon.png`;
const SEO_LOCALES = [
{ code: 'de', label: 'Deutsch' },
@@ -18,9 +18,9 @@ const SEO_LOCALES = [
];
const LOCALE_SEO_META = {
de: {
- title: 'SingleChat: Kostenloser Single Chat, privat & anonym',
- description: 'Kostenloser Single Chat für private und anonyme Gespräche. Lerne neue Kontakte kennen und teile Bilder sicher online.',
- keywords: 'single chat, kostenloser chat, privat chatten, anonym chat, free chat, private chat, anonymous chat, online chat'
+ title: 'SingleChat - Kostenloser Single Chat ohne Anmeldung',
+ description: 'Kostenloser Single Chat ohne lange Registrierung: Profil starten, Singles kennenlernen, privat chatten und Bilder sicher austauschen.',
+ keywords: 'single chat, kostenloser single chat, single chat ohne anmeldung, single treff chat, chatten fuer singles, online chat'
},
en: {
title: 'SingleChat: Free Private & Anonymous Single Chat',
@@ -70,13 +70,52 @@ const LOCALE_SEO_META = {
}
};
+const landingPages = [
+ {
+ route: '/kostenloser-single-chat',
+ title: 'Kostenloser Single Chat - direkt online chatten - SingleChat',
+ description: 'Starte kostenlos im Single Chat: Profil anlegen, Singles finden, privat schreiben und Bilder sicher austauschen.',
+ keywords: 'kostenloser single chat, single chat kostenlos, gratis chat singles, kostenlos chatten',
+ heading: 'Kostenloser Single Chat',
+ intro: 'SingleChat ist fuer alle gedacht, die unkompliziert neue Kontakte finden und direkt online chatten moechten. Du startest mit einem kurzen Profil und kannst danach passende Singles suchen oder in der Lobby ins Gespraech kommen.',
+ sections: [
+ ['Warum kostenlos starten?', 'Ein Single Chat funktioniert am besten, wenn der Einstieg niedrig bleibt. Deshalb steht der schnelle Start im Mittelpunkt: Nickname waehlen, Alter und Land angeben, Chat oeffnen.'],
+ ['Privat schreiben und Bilder teilen', 'Neben offenen Kontakten sind private Unterhaltungen moeglich. Bilder lassen sich im Chat austauschen, waehrend Regeln und Blockierfunktionen fuer einen respektvollen Rahmen sorgen.']
+ ]
+ },
+ {
+ route: '/single-chat-ohne-anmeldung',
+ title: 'Single Chat ohne Anmeldung - schnell und privat - SingleChat',
+ description: 'Single Chat ohne lange Anmeldung: Nickname eingeben, Profil starten und direkt mit Singles online chatten.',
+ keywords: 'single chat ohne anmeldung, chat ohne anmeldung, single chat sofort, anonym chatten',
+ heading: 'Single Chat ohne Anmeldung',
+ intro: 'Wenn du nicht erst ein langes Konto erstellen moechtest, passt SingleChat zu diesem Suchwunsch: wenige Angaben reichen fuer den Einstieg, danach kannst du sofort loslegen.',
+ sections: [
+ ['Schneller Einstieg mit Nickname', 'Du brauchst keinen langen Registrierungsprozess. Ein Nickname und die noetigen Basisangaben genuegen, damit andere Nutzer dich im Chat einordnen koennen.'],
+ ['Anonym bleiben, respektvoll chatten', 'Nutze einen Nickname, der keine privaten Daten verraet. Teile Telefonnummer, Adresse oder Zahlungsdaten nicht im Chat und blockiere Kontakte, wenn Grenzen ueberschritten werden.']
+ ]
+ },
+ {
+ route: '/single-treff-chat',
+ title: 'Single Treff Chat - neue Kontakte kennenlernen - SingleChat',
+ description: 'Single Treff Chat fuer neue Kontakte: finde Singles, starte private Gespraeche und lerne Menschen online kennen.',
+ keywords: 'single treff chat, single treff, singles kennenlernen chat, chatten fuer singles',
+ heading: 'Single Treff Chat',
+ intro: 'Der Single Treff Chat richtet sich an Nutzer, die online neue Menschen kennenlernen und aus ersten Nachrichten echte Gespraeche machen wollen.',
+ sections: [
+ ['Kontakte finden statt endlos suchen', 'Mit Profilangaben wie Land, Alter und Geschlecht kannst du leichter passende Kontakte einschaetzen und Gespraeche beginnen, die mehr als nur Smalltalk sind.'],
+ ['Gute erste Nachrichten', 'Persoenliche, kurze Einstiege funktionieren besser als kopierte Standardsaetze. Im Ratgeber findest du Beispiele fuer natuerliche erste Nachrichten.']
+ ]
+ }
+];
+
const seoData = {
'/': {
- title: 'SingleChat: Kostenloser Single Chat, privat & anonym',
- description: 'Kostenloser Single Chat für private und anonyme Gespräche. Lerne neue Kontakte kennen und teile Bilder sicher online.',
- keywords: 'single chat, kostenloser chat, privat chatten, anonym chat, free chat, private chat, anonymous chat, online chat',
- ogTitle: 'SingleChat: Kostenloser Single Chat, privat & anonym',
- ogDescription: 'Kostenlos chatten, privat bleiben und neue Kontakte kennenlernen - mit sicherem Bildaustausch.',
+ title: 'SingleChat - Kostenloser Single Chat ohne Anmeldung',
+ description: 'Kostenloser Single Chat ohne lange Registrierung: Profil starten, Singles kennenlernen, privat chatten und Bilder sicher austauschen.',
+ keywords: 'single chat, kostenloser single chat, single chat ohne anmeldung, single treff chat, chatten fuer singles, online chat',
+ ogTitle: 'SingleChat - Kostenloser Single Chat ohne Anmeldung',
+ ogDescription: 'Kostenlos chatten, Singles kennenlernen und Bilder sicher austauschen.',
ogType: 'website',
ogUrl: `${SITE_URL}/`,
ogImage: DEFAULT_IMAGE,
@@ -85,8 +124,9 @@ const seoData = {
'@context': 'https://schema.org',
'@type': 'WebSite',
name: 'SingleChat',
+ alternateName: 'Single-Chat.net',
url: `${SITE_URL}/`,
- description: 'Kostenloser Single Chat für private und anonyme Gespräche. Lerne neue Kontakte kennen und tausche Bilder sicher aus.',
+ description: 'Kostenloser Single Chat ohne lange Registrierung. Lerne Singles kennen, chatte privat und tausche Bilder sicher aus.',
inLanguage: 'de-DE'
}
},
@@ -303,6 +343,34 @@ const seoData = {
}
};
+for (const page of landingPages) {
+ seoData[page.route] = {
+ title: page.title,
+ description: page.description,
+ keywords: page.keywords,
+ ogTitle: page.title,
+ ogDescription: page.description,
+ ogType: 'website',
+ ogUrl: `${SITE_URL}${page.route}`,
+ ogImage: DEFAULT_IMAGE,
+ robots: 'index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1',
+ schema: {
+ '@context': 'https://schema.org',
+ '@type': 'WebPage',
+ name: page.title,
+ url: `${SITE_URL}${page.route}`,
+ description: page.description,
+ isPartOf: {
+ '@type': 'WebSite',
+ name: 'SingleChat',
+ alternateName: 'Single-Chat.net',
+ url: `${SITE_URL}/`
+ },
+ inLanguage: 'de-DE'
+ }
+ };
+}
+
for (const locale of SEO_LOCALES) {
const meta = LOCALE_SEO_META[locale.code] || LOCALE_SEO_META.de;
seoData[`/${locale.code}`] = {
@@ -435,6 +503,26 @@ function buildLocalizedLandingContent(route, __dirname) {
`;
}
+function buildSeoLandingContent(route) {
+ const page = landingPages.find((entry) => entry.route === route);
+ if (!page) return '';
+
+ const sectionMarkup = page.sections
+ .map(([title, text]) => `
+ ${escapeHtml(title)}
+ ${escapeHtml(text)}
+`)
+ .join('\n');
+
+ return ``;
+}
+
function generateHTML(route, meta, __dirname) {
const distIndexPath = join(__dirname, '../docroot/dist/index.html');
@@ -482,6 +570,11 @@ function generateHTML(route, meta, __dirname) {
}
}
+ const seoLanding = buildSeoLandingContent(route);
+ if (seoLanding) {
+ html = html.replace('', `${seoLanding}
`);
+ }
+
if (route === '/feedback') {
const feedbackItems = loadFeedback(__dirname)
.sort((a, b) => new Date(b.createdAt) - new Date(a.createdAt))
@@ -547,12 +640,15 @@ Allow: /feedback
Allow: /faq
Allow: /regeln
Allow: /sicherheit
-<