]> git.openstreetmap.org Git - chef.git/commitdiff
wordpress: update RewriteRule to recommendation
authorGrant Slater <github@firefishy.com>
Wed, 15 Mar 2023 12:03:18 +0000 (12:03 +0000)
committerGrant Slater <github@firefishy.com>
Wed, 15 Mar 2023 12:03:18 +0000 (12:03 +0000)
cookbooks/wordpress/templates/default/apache.erb

index d78d0dfb53157e2100b58b3b56aa888d20322bf5..8a8438c41386d11f3cfa9c4226c19fe4147e98bc 100644 (file)
@@ -51,6 +51,7 @@
     RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
     RewriteRule ^wp-includes/theme-compat/ - [F,L]
     RewriteRule ^readme\.html$ [F,L]
     RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
     RewriteRule ^wp-includes/theme-compat/ - [F,L]
     RewriteRule ^readme\.html$ [F,L]
+    RewriteRule ^index\.php$ - [L]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule . /index.php [L]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule . /index.php [L]