]> BookStack Code Mirror - bookstack/blobdiff - public/.htaccess
Update verify-totp.blade.php
[bookstack] / public / .htaccess
index abe87b39de7a73abd817cedd264d3c1f7b9ec17b..3aec5e27e5db801fa9e321c0a97acbb49e10908f 100644 (file)
 
     # Redirect Trailing Slashes If Not A Folder...
     RewriteCond %{REQUEST_FILENAME} !-d
-    RewriteRule ^(.*)/$ /$1 [L,R=301]
+    RewriteCond %{REQUEST_URI} (.+)/$
+    RewriteRule ^ %1 [L,R=301]
 
-    # Handle Front Controller...
+    # Send Requests To Front Controller...
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^ index.php [L]