Always direct the Users to the login page

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
polarbear
Posts: 11
Joined: 18 Apr 2007, 09:52
Contact:

Always direct the Users to the login page

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Re: Always direct the Users to the login page

Post 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.
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
polarbear
Posts: 11
Joined: 18 Apr 2007, 09:52
Contact:

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post by deboutv »

Hi,

Do you have an index.php file in your Mantis directory?
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
polarbear
Posts: 11
Joined: 18 Apr 2007, 09:52
Contact:

Post 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
deboutv
Posts: 507
Joined: 15 Jan 2007, 14:31
Location: La Ciotat, FRANCE
Contact:

Post 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
Want more plugins to customize Mantis?
=> http://deboutv.free.fr/mantis/

Mantis: 1.1.0, 1.1.0a2
PHP: 5.0.4
SQL: MySQL 5.0.19
OS: Linux
polarbear
Posts: 11
Joined: 18 Apr 2007, 09:52
Contact:

Post by polarbear »

Hi,
Thanks a lot..It started working.

Thanks & regards,
Polarbear
Post Reply