From efcbf1c9480f7d29500a5d1456da5acffd97e6c2 Mon Sep 17 00:00:00 2001 From: "Olivier M. Mukadi" Date: Wed, 18 Jul 2018 10:58:19 +0100 Subject: [PATCH] [mukadi-wordpress] simplify .htaccess --- mukadi/wordpress-bundle/1.1/public/.htaccess | 26 ++++++-------------- 1 file changed, 7 insertions(+), 19 deletions(-) diff --git a/mukadi/wordpress-bundle/1.1/public/.htaccess b/mukadi/wordpress-bundle/1.1/public/.htaccess index 7b319204..75662867 100644 --- a/mukadi/wordpress-bundle/1.1/public/.htaccess +++ b/mukadi/wordpress-bundle/1.1/public/.htaccess @@ -1,22 +1,10 @@ +# BEGIN WordPress RewriteEngine On - - RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$ - RewriteRule ^(.*) - [E=BASE:%1] - - RewriteCond %{ENV:REDIRECT_STATUS} ^$ - RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L] - - RewriteCond %{REQUEST_FILENAME} -f [OR] - RewriteCond %{REQUEST_FILENAME} -d - RewriteRule .? - [L] - - # Rewrite all other queries to the front controller. - RewriteRule .? %{ENV:BASE}/index.php [L] - - - - - RedirectMatch 302 ^/$ /index.php/ - + RewriteBase / + RewriteRule ^index\.php$ - [L] + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule . /index.php [L] +# END WordPress