Forum Moderators: coopster

Message Too Old, No Replies

.htaccess

htaccess,php problem

         

c0nsur

10:12 pm on Feb 5, 2004 (gmt 0)

10+ Year Member



hey guys!
im building my website and i wanted to put a htaccess in a protected dir...

and place a login form somewhere to access my protected directory

so my login collect username and pass
and try to go at my dir specific url like this:
user:pass@mysite.com

but it works on some computer and doesnt for others

is there any reason?

coopster

12:44 pm on Feb 6, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



It may be any number of issues, however, you might start with the notification that
IE will drop support usernames in URLs [webmasterworld.com].

c0nsur

10:55 pm on Feb 13, 2004 (gmt 0)

10+ Year Member



ok then if they will drop the username & password from the URL

so then HOW can i make a login in my php page THROUGH a .HTACCESS?

thanks for replying :)

coopster

2:20 pm on Feb 14, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You can still drop the .htaccess file in there. A login dialog will be sent requesting authentication. That link is simply stating that you may want to alter any practice of pre-pending your URL with the username and password.

.htaccess files [httpd.apache.org]
Authentication tutorial [httpd.apache.org]