Hi,
I'm shared hosting user (CPanel) that's powered by LiteSpeed web server. And running into following anomaly:
I have a bunch of files under
I also have this line in
^^ this suppose to make anything in
So,
https://domain.com/images/some.ico - displayed, expected
https://domain.com/images/some.png - displayed, expected
https://domain.com/images/favicon.ico - NOT Displayed!, unexpected
https://domain.com/public/images/favicon.ico - displayed
as if there's some server setting governs this specific file before it even gets to the .htaccess rules. But I don't see anything in CPanel.
Any ideas why this can be happening, or how I can troubleshoot it?
I'm shared hosting user (CPanel) that's powered by LiteSpeed web server. And running into following anomaly:
I have a bunch of files under
/home/account/domain.com/public/images/
Code:
/home/account/domain.com/public/images/favicon.ico
/home/account/domain.com/public/images/some.ico (copy of favicon.ico)
/home/account/domain.com/public/images/some.png (and other PNG files)
/home/account/domain.com/.htaccess
file:
Code:
RewriteCond %{DOCUMENT_ROOT}/public/%{REQUEST_URI} -f
RewriteRule ^(.*)$ public/$1 [L]
https://domain.com/public/images/file.ext
accessible as https://domain.com/images/file.ext
... and it works great for all files except for the favicon.ico
! -- for this file I get error 404 page.So,
https://domain.com/images/some.ico - displayed, expected
https://domain.com/images/some.png - displayed, expected
https://domain.com/images/favicon.ico - NOT Displayed!, unexpected
https://domain.com/public/images/favicon.ico - displayed
as if there's some server setting governs this specific file before it even gets to the .htaccess rules. But I don't see anything in CPanel.
Any ideas why this can be happening, or how I can troubleshoot it?