My httpd.config
UserDir disabled
and
#UserDir public_html
And also commented out
#LoadModule userdir_module modules/mod_userdir.so
but when I browse my website, if I put /~root I get a message in Firefox:
The connection was reset. (code 504)
If I browse /~foo it goes to page not found (code 404)
It should not treat ~root any different than any other link that does not exist. I am using Magento so for any other link that does not exist Magento displays:
Oops page not found
but for ~root it seems like it is bypassing Magento and providing a different error.
I tried to Use a RedirectMatch rewrite rule under Apache e.g.: RedirectMatch ^/~(.*)$ http://example.com
And
3) Add into httpd.conf:
ErrorDocument 404 [servername.com...]
ErrorDocument 403 [servername.com...]
[edited by: phranque at 4:00 pm (utc) on Jul 29, 2014]
[edit reason] exemplified domain [/edit]