Forum Moderators: phranque
I've tested a few sites and their headers show that .com/~username is 301 redirecting to example.com/~username/ and sending a 200 response while showing the content from /.
example.com/~username/realpage is also landing on a code 200 and showing the content from example.com/realpage.
None of these sites use ~ in the valid URLs so is there a way to redirect with that maybe, or just a match with ~username or even just username? On most of these sites I don't have access to anything beyond .htaccess, so I'm hoping there's some magic that can be done with that.
~randomword sends a 404, so maybe that's a better response for security reasons?
This looks like it could potentially be a very large duplicate problem that I'd like to clear up before it bites me.
(Edited for clarity)
[edited by: LunaC at 4:01 pm (utc) on June 4, 2008]
UserDir disabled If you don't have access to the server config, then yes, these requests can easily be redirected to remove the "~username" -- See Apache mod_alias and/or mod_rewrite.
Jim