Forum Moderators: coopster
example if the user enter http://example.com/index.php
it will be redirected to http://www.example.com/
The problem now is my login page
Initial loading of the page, it will ask for username and password.
If the user did not input, let say his username and click on the submit button, it will display an error message.
The problem is because of the the code on my htaccess file, it does not display the error message because it always treat the page load as initial loading
How can I address that?
[edited by: eelixduppy at 2:33 pm (utc) on Aug. 14, 2007]
[edit reason] fixed spelling [/edit]
The issue is if you have a redirect code on your htaccess file, the effect is, it will always assume that all page loads are initial loading even if the page load is due to clicking a submit button (in which you have to pass a value to the page).
Upon the login failure, write a login error to a session and upon the re-loading display it. Upon successful login, clear the session value, so that it doesn't show it next time.
Habtom