Page 1 of 1

Always direct the Users to the login page

Posted: 20 Apr 2007, 06:38
by polarbear
Hi,

Can anybody help me ,
How to direct the users to the login page always ?
I have deployed Mantis on an Apache Server 2.2.4 & the directory structure being
"C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mantis"
The url to the login page is "http://localhost/mantis/login_page.php".
Now if the user types only "http://localhost/mantis" & clicks on the GO button, he is directed to a page, where he can see the links to all the core PHP files.
I do not want this to happen. I need to customize such that even though the user enter only "http://localhost/mantis/" he should be directed to the Login page.
Please give me the details regarding to which file i have to edit & the path to access that file.

With Advance Thanks,
Polarbear

Re: Always direct the Users to the login page

Posted: 21 Apr 2007, 21:32
by deboutv
polarbear wrote:Hi,

Can anybody help me ,
How to direct the users to the login page always ?
I have deployed Mantis on an Apache Server 2.2.4 & the directory structure being
"C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\mantis"
The url to the login page is "http://localhost/mantis/login_page.php".
Now if the user types only "http://localhost/mantis" & clicks on the GO button, he is directed to a page, where he can see the links to all the core PHP files.
I do not want this to happen. I need to customize such that even though the user enter only "http://localhost/mantis/" he should be directed to the Login page.
Please give me the details regarding to which file i have to edit & the path to access that file.

With Advance Thanks,
Polarbear
It seems that some files are missing. I recommend you to reinstall Mantis by re-downloading the package.

Posted: 23 Apr 2007, 09:00
by polarbear
Hi..

Redownloading & reinstallation of the Mantis folder hasn't worked.
It doesn't seems that the files are going missing, as the size old mantis directory is the same as that of the newly downloaded one.
Can anyone help me on this regard?

Cheers,
Polarbear

Posted: 23 Apr 2007, 10:38
by deboutv
Hi,

Do you have an index.php file in your Mantis directory?

Posted: 24 Apr 2007, 04:21
by polarbear
Hi..
index.php is available in the Mantis folder.
How does this file is going to help me?
Because this file takes care of authenticating a user.
But i need a solution for redirecting the user always to the login page even though he enters "http://localhost/mantis" url.
Right now the user is directed to a page where he can see the links for all the PHP files in the Mantis directory when he enters the above url.
Can anyone help me?

Cheers,
Polarbear

Posted: 24 Apr 2007, 05:05
by deboutv
In the Apache configuration file, add index.php to the DirectoryIndex value.

By example in my Apache configuration file I have:

Code: Select all

DirectoryIndex index.html index.html.var index.php index.php3 index.shtml index.cgi index.pl index.htm Default.htm default.htm index.xml

Posted: 24 Apr 2007, 07:12
by polarbear
Hi,
Thanks a lot..It started working.

Thanks & regards,
Polarbear