Forum Moderators: phranque
My directory is at [site.example.com...] and when the password is entered successfully, .htaccess redirects me to [site.example.com...] which, of course, isn't available.
Can mod rewrite interrupt the redirect by the Auth system and send it to the correct dir at [site.example.com...] And if so, how do I do this? I've tried using the mod rewrite but to no avail...
Any input would be greatly appreciated.
If so, look at your server config, and try turning UseCanonicalName off
There is no "redirect" on valid authentication. Only if the authentication fails does the server "redirect" -- It serves the document specified by any applicable "ErrorDocument 401" directive. Note that the path for ErrorDocuments *must* be relative to the server root, and *must not* be full URLs. This is discussed in the Apache core documentation for the ErrorDocument directive.
Jim