xxxxxxxxxx
RedirectMatch 301 ^/blog/about /blog/about.html
xxxxxxxxxx
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
xxxxxxxxxx
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REQUEST_URI} !/maintenance.html$
RewriteRule $ /maintenance.html [R=302,L]
xxxxxxxxxx
# Important for JavaScript frameworks: Vue, React, Preact, Svelte, ...
# If mod_rewrite.c is enabled
<IfModule mod_rewrite.c>
# Enable Rewrite Engine
RewriteEngine On
# Redirect closing-slash requests if not a folder
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# All request redirect to ./index.html
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.html [L]
</IfModule>