add robots.txt and sitemap.xml samples
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
# Configuration locale
|
||||
includes/config.local.php
|
||||
|
||||
# Fichiers personnalisables pour chaque installation
|
||||
sitemap.xml
|
||||
robots.txt
|
||||
|
||||
# Fichiers de l'IDE/éditeur
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
@@ -105,6 +105,20 @@ Vous pouvez personnaliser l'apparence de la plateforme en modifiant les fichiers
|
||||
1. Remplacez le fichier `img/logo.png` par votre propre logo
|
||||
2. Modifiez les couleurs dans `css/styles.css`
|
||||
|
||||
## Personnalisation du sitemap et robots.txt
|
||||
|
||||
Les fichiers `sitemap.xml` et `robots.txt` contiennent le nom de domaine codé en dur (`kaubuntu.re`). Pour les adapter à votre domaine :
|
||||
|
||||
1. Copiez les fichiers samples pour créer vos propres versions :
|
||||
```
|
||||
cp sitemap.xml.sample sitemap.xml
|
||||
cp robots.txt.sample robots.txt
|
||||
```
|
||||
|
||||
2. Remplacez `VOTRE-DOMAINE` par votre nom de domaine réel dans ces deux fichiers.
|
||||
|
||||
Ces fichiers sont listés dans le `.gitignore` afin que vos modifications ne soient pas suivies par Git, ce qui vous permet de personnaliser votre instance sans affecter le code source principal.
|
||||
|
||||
## Déploiement
|
||||
|
||||
Pour déployer sur un serveur mutualisé:
|
||||
|
||||
@@ -0,0 +1,23 @@
|
||||
User-agent: *
|
||||
Allow: /
|
||||
Allow: /index
|
||||
Allow: /index.php
|
||||
Allow: /direct
|
||||
Allow: /direct.php
|
||||
Allow: /categories
|
||||
Allow: /categories.php
|
||||
Allow: /video
|
||||
Allow: /video.php
|
||||
Allow: /recherche
|
||||
Allow: /recherche.php
|
||||
Allow: /mentions-legales
|
||||
Allow: /mentions-legales.php
|
||||
Allow: /img/
|
||||
Disallow: /includes/
|
||||
Disallow: /js/
|
||||
Disallow: /css/
|
||||
Disallow: /ajax/
|
||||
Disallow: /docs/
|
||||
|
||||
# Sitemap
|
||||
Sitemap: https://VOTRE-DOMAINE/sitemap.xml
|
||||
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/</loc>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/index</loc>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/index.php</loc>
|
||||
<changefreq>daily</changefreq>
|
||||
<priority>1.0</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/direct</loc>
|
||||
<changefreq>hourly</changefreq>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/direct.php</loc>
|
||||
<changefreq>hourly</changefreq>
|
||||
<priority>0.9</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/mentions-legales</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.3</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/mentions-legales.php</loc>
|
||||
<changefreq>monthly</changefreq>
|
||||
<priority>0.3</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/recherche</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/recherche.php</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/categories</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/categories.php</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.8</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/video</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.7</priority>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://VOTRE-DOMAINE/video.php</loc>
|
||||
<changefreq>weekly</changefreq>
|
||||
<priority>0.7</priority>
|
||||
</url>
|
||||
<!-- Les pages dynamiques comme categories.php?id=X et video.php?id=X ne sont pas incluses
|
||||
car elles dépendent des contenus disponibles sur l'instance PeerTube -->
|
||||
</urlset>
|
||||
Reference in New Issue
Block a user