WP init
This commit is contained in:
@@ -1,20 +1,44 @@
|
||||
RewriteEngine On
|
||||
# BEGIN LSCACHE
|
||||
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
|
||||
<IfModule LiteSpeed>
|
||||
RewriteEngine on
|
||||
CacheLookup on
|
||||
RewriteRule .* - [E=Cache-Control:no-autoflush]
|
||||
RewriteRule litespeed/debug/.*\.log$ - [F,L]
|
||||
RewriteRule \.litespeed_conf\.dat - [F,L]
|
||||
|
||||
# Ajoute un slash final si absent (sauf fichiers/dossiers réels)
|
||||
### marker ASYNC start ###
|
||||
RewriteCond %{REQUEST_URI} /wp-admin/admin-ajax\.php
|
||||
RewriteCond %{QUERY_STRING} action=async_litespeed
|
||||
RewriteRule .* - [E=noabort:1]
|
||||
### marker ASYNC end ###
|
||||
|
||||
### marker DROPQS start ###
|
||||
CacheKeyModify -qs:fbclid
|
||||
CacheKeyModify -qs:gclid
|
||||
CacheKeyModify -qs:utm*
|
||||
CacheKeyModify -qs:_ga
|
||||
### marker DROPQS end ###
|
||||
|
||||
</IfModule>
|
||||
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
|
||||
# END LSCACHE
|
||||
# BEGIN NON_LSCACHE
|
||||
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
|
||||
## LITESPEED WP CACHE PLUGIN - Do not edit the contents of this block! ##
|
||||
# END NON_LSCACHE
|
||||
# BEGIN WordPress
|
||||
# Les directives (lignes) entre « BEGIN WordPress » et « END WordPress » sont générées
|
||||
# dynamiquement, et doivent être modifiées uniquement via les filtres WordPress.
|
||||
# Toute modification des directives situées entre ces marqueurs sera surchargée.
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine On
|
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
|
||||
RewriteBase /
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule ^([^/]+)$ /$1/ [R=301,L]
|
||||
RewriteRule . /index.php [L]
|
||||
</IfModule>
|
||||
|
||||
# Redirige /nompage/ vers /nompage.php si le fichier existe
|
||||
RewriteCond %{REQUEST_FILENAME}.php -f
|
||||
RewriteRule ^([^/]+)/$ $1.php [L,QSA]
|
||||
|
||||
# Routes d'erreurs
|
||||
ErrorDocument 400 /errors/error.php?c=400
|
||||
ErrorDocument 401 /errors/error.php?c=401
|
||||
ErrorDocument 403 /errors/error.php?c=403
|
||||
ErrorDocument 404 /errors/error.php?c=404
|
||||
ErrorDocument 500 /errors/error.php?c=500
|
||||
|
||||
# Blocage des scans WordPress & autres exploits connus
|
||||
RedirectMatch 403 ^/(wp-admin|wordpress/wp-admin|wp-login\.php|xmlrpc\.php|setup-config\.php)
|
||||
# END WordPress
|
||||
|
||||
Reference in New Issue
Block a user