فهرست منبع

add the maintenance.html file

Olivier Massot 6 ماه پیش
والد
کامیت
219c6b43a3
2فایلهای تغییر یافته به همراه39 افزوده شده و 0 حذف شده
  1. 15 0
      public/.htaccess
  2. 24 0
      public/maintenance.html

+ 15 - 0
public/.htaccess

@@ -0,0 +1,15 @@
+<IfModule mod_rewrite.c>
+  RewriteEngine On
+
+  # Vérifier si le fichier .maintenance existe
+  RewriteCond %{DOCUMENT_ROOT}/.maintenance -f
+
+  # Exclure certaines adresses IP (optionnel) - remplacez par votre IP
+  # RewriteCond %{REMOTE_ADDR} !^10\.8\.0\.
+
+  # Ne pas rediriger pour le fichier maintenance.html lui-même
+  RewriteCond %{REQUEST_URI} !/maintenance.html
+
+  # Rediriger vers la page de maintenance
+  RewriteRule ^(.*)$ /maintenance.html [R=307,L]
+</IfModule>

+ 24 - 0
public/maintenance.html

@@ -0,0 +1,24 @@
+<!-- public/maintenance.html -->
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Site en maintenance</title>
+    <style>
+      body {
+        font-family: Arial, sans-serif;
+        text-align: center;
+        padding: 50px;
+      }
+      h1 {
+        color: #333;
+      }
+      p {
+        color: #666;
+      }
+    </style>
+  </head>
+  <body>
+    <h1>Site en maintenance</h1>
+    <p>Notre site est actuellement en maintenance. Veuillez revenir plus tard.</p>
+  </body>
+</html>