File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Disable automatic Apache slash redirects
22DirectorySlash 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]
You can’t perform that action at this time.
0 commit comments