Skip to content

Commit 69237d7

Browse files
committed
fix rewrite results to 403
1 parent 5f247a5 commit 69237d7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

webui/public/.htaccess

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Disable automatic Apache slash redirects
22
DirectorySlash Off
3+
RewriteOptions AllowNoSlash
34

45
<IfModule mod_negotiation.c>
56
Options -MultiViews
@@ -43,7 +44,7 @@ DirectorySlash Off
4344
# Rewrite /about/ → /about/index.html
4445
RewriteRule ^(.+)/$ $1/index.html [L]
4546

46-
# rewrite to /index.html ff the request is a directory but has no trailing slash
47+
# rewrite to /index.html if the request is a directory but has no trailing slash
4748
RewriteCond %{HTTP_USER_AGENT} googlebot|bingbot|Seobility|yandex|baiduspider|facebookexternalhit|twitterbot|rogerbot|linkedinbot|embedly|quora\ link\ preview|showyoubot|outbrain|pinterest\/0\.|pinterestbot|slackbot|vkShare|W3C_Validator|whatsapp|redditbot|applebot|flipboard|tumblr|bitlybot|skypeuripreview|nuzzel|discordbot|google\ page\ speed|qwantify|bitrix\ link\ preview|xing-contenttabreceiver|google-inspectiontool|chrome-lighthouse|telegrambot|amazonbot [NC]
4849
RewriteCond %{REQUEST_FILENAME} -d
4950
RewriteRule ^(.+[^/])$ $1/index.html [L]

0 commit comments

Comments
 (0)