Server issue Flexible www. and non-www for .txt and images

JoyFreak

Well-known member
Affected version
2.3.2
This has been difficult to pinpoint but then I also tested on this site and it seems to be doing the same.
Code:
https://xenforo.com/robots.txt
https://www.xenforo.com/robots.txt

https://xenforo.com/community/styles/default/xenforo/xenforo-logo.svg
https://www.xenforo.com/community/styles/default/xenforo/xenforo-logo.svg

https://xenforo.com/community/data/avatars/o/11/11388.jpg?1701366656
https://www.xenforo.com/community/data/avatars/o/11/11388.jpg?1701366656

It doesn't seem to redirect to the preferred www. or non-www version of the URL. It also seems that adding the necessary code into .htaccess doesn't work correctly. Something is definitely not right.
 
Those requests are all handled by the web server and never reach PHP or XenForo. They would have to be addressed by web server configuration changes.
 
You also need to be running a web server that supports htaccess such as Apache. If you are using nginx, the redirecting is handled in the nginx config files.
 
Back
Top Bottom