I used htaccess login / password to secure my site, when I want to enter the directory of my site I type login / password, it works perfectly, the problem that when I enter with a sub-domain, it asks me to enter again LOG/PASS.
i need to fix this issue, any idea
thanks in advance
That's because a different subdomain would be considered a different website, so you need to authenticate again.
Related
I’ll be changing my website URL soon (eg example.net to example.com) and since my website is quite old and there is many users that saved their passwords in browser’s built-in password manager I’m afraid that they won’t be able to login with autofill after I change the website address.
I know most of browsers will let they obtain their passwords on settings but is there any way to let browser know that the new url is owned by the website as the other url? Probably 301 redirect will not warn browser to change the saved password url to the new one, right?
I tried to find anything related to this but seems like there’s not a pattern approach to the problem. Perhaps I’ll need to alert the users about the change some days before…
I’ve tried to search for a pattern way to solve the problem but couldn’t find any.
Everyone knows about the .htaccess / .htpasswd password protection for files or directories. I've looked on the internet without success for a way to edit the 'Design' of that coding. Right now, when you use that, you'll get prompted with the basic browser window to enter a username and password. Is there a way that username / password login form be integrated into a webpage with a design OR any way to design that prompt?
Unsure if I'm understandable at all... let me know if you require more clarification.
Thank you.
See comments below initial question.
Answer : No it is not possible, if we keep the basic .htaccess auth. It might be possible using HTTP requests but it won't be as secure.
I am unable to login to the Opencart Dashboard. I can see the login screen and enter passwords. I even did a fresh install. It just doesn't redirect me to the dashboard. I have read up and tried every possible solution. Is there something on the server that could be blocking the re-direct.
This could be caused by .htaccess redirect. It happened to me too because my website was getting redirected to www.example.com but the session was for example.com. Make sure you have the same version of the url everywhere.
I have 2 sites running on one instance of IIS 7.
A.site.com
B.site.com
These sites use forms authentication and there is one form for logging in on site A.
So if i try to access a restricted page on site B with URL
B.site.com/TEST/
i get redirected to
A.site.com/login.aspx?ReturnUrl=%2TEST%2f
I can then enter username and password to authenticate. So far so good.
After authentication I get redirected to
A.site.com/TEST/
instead of
B.site.com/TEST/.
Can anyone tell me how i can get around this problem and make IIS redirect me to the correct page?
Note: the authentication works fine - i can go to the page B.site.com/TEST/ and i am no longer redirected to the login page. So the problem is just redirecting to the wrong site or the value of ReturnUrl should not be a relative path.
A workaround might be to force the user to go back to the last page using JS instead. Not a great answer though i admit. I think this is an IIS bug since the documentation to set up forms authentication with different sub-domains does not mention this problem at all.
EDIT:
A better answer is change the loginUrl to include the domain.
loginUrl="https://A.site.com/Login.aspx?domain=B.site.com"
Then handle the redirect client side
I have a free custom login/register sidebar widget and I wants that all users must login or register through this custom login widget. So, I tried to disable wp-login.php by denying IP address except mine via .htaccess.
But, this is not working. When I tried to login (by using proxy) through custom login widget, it simply didn't logged in.
Is there any way to solve this issue?
Many thanks in advance.
Note: This question is related to wordpress login. I tried to search similar question here but found only one without any solution.