I've been trying to make a redirect from www to non-www on a directory protected by basic http authentication in an htaccess file.
What happens when someone enters www.example.com is that they are asked for authentication and when they provide the correct login/password they are redirected to example.com and presented with yet another authentication request.
From what I've read it's impossible to solve in htaccess since authentication by design always happens before redirect (se this and this for example).
The only way around this problem is to set this up in httpd.conf instead of using a htaccess file. But I can't do that on a shared server, right?
Or have I missed something and it really is solvable in htaccess?


LinkBack URL
About LinkBacks



Reply With Quote
I know the basics of what curl is, but I don't see how it would have anything to do with either mod_rewrite or basic http auth.
Bookmarks