XF 2.1 index.html - The requested page could not be found

soloarquitectura

Well-known member
For some reason, some users enter or link to index.html
This takes them to an error page (The requested page could not be found).

I have this in my .htaccess in my root:

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html?\ HTTP/
RewriteRule ^(.*)index\.html?$ [URL]https://www.mysite.com/$1[/URL] [R=301,L]

but it doesn't work with the XenForo root.

Here in XenForo also occurs:
https://xenforo.com/community/index.html
 
I know, that's why I ask the question, to see if error can be avoided by a redirection or otherwise ;)
Why are you using this :
Code:
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.html?\ HTTP/

You can use board URL canonicalization :
Enable board URL canonicalization :
If enabled, the board URL setting will be treated as the canonical installation URL. If visitors access your site through a different URL, they will be redirected to the appropriate canonical URL. When enabled, you must ensure that your board URL setting is correct. If it is not correct, areas outside the admin control panel will not be accessible!

Screen :
199040
 
Top Bottom