XAMPP keep redirectig me to /dashboard

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

XAMPP keep redirectig me to /dashboard

Postby doctorpi » 29. December 2020 17:44

Hello there,
I've installed my site in a subsubfolder of /Applications/XAMPP/htdocs if I go to the parent folder of the one with index.php it lists correctly files and directories but when I go to the folder with the index.php I'm redirected to /dashboard

Prior to that I've edited httpd.conf to change <IfModule unixd_module> for my own user (with the group staff) and also chown -R htdocs (I've done that because there was a permission error in the php)

Does someone have an idea?
doctorpi
 
Posts: 6
Joined: 28. December 2020 17:51
XAMPP version: 7.3.25
Operating System: Mac OS Big Sur

Re: XAMPP keep redirectig me to /dashboard

Postby JJ_Tagy » 29. December 2020 18:08

Use an editor to view the contents of the index.php file in htdocs and see what it does.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: XAMPP keep redirectig me to /dashboard

Postby doctorpi » 29. December 2020 18:13

my website index.php contains that:
Code: Select all
<?php
/************************************************************************
 * OVIDENTIA http://www.ovidentia.org                                   *
 ************************************************************************
 * Copyright (c) 2003 by CANTICO ( http://www.cantico.fr )              *
 *                                                                      *
 * This file is part of Ovidentia.                                      *
 *                                                                      *
 * Ovidentia is free software; you can redistribute it and/or modify    *
 * it under the terms of the GNU General Public License as published by *
 * the Free Software Foundation; either version 2, or (at your option)  *
 * any later version.                                                                                                   *
 *                                                                                                                                              *
 * This program is distributed in the hope that it will be useful, but  *
 * WITHOUT ANY WARRANTY; without even the implied warranty of                   *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                                 *
 * See the  GNU General Public License for more details.                                *
 *                                                                                                                                              *
 * You should have received a copy of the GNU General Public License    *
 * along with this program; if not, write to the Free Software                  *
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,*
 * USA.                                                                                                                                 *
************************************************************************/
include "config.php";
include $GLOBALS['babInstallPath']."index.php";
?>


The problem occurs when I click "home"
https://imgur.com/a/syqxzfb
doctorpi
 
Posts: 6
Joined: 28. December 2020 17:51
XAMPP version: 7.3.25
Operating System: Mac OS Big Sur

Re: XAMPP keep redirectig me to /dashboard

Postby JJ_Tagy » 29. December 2020 18:57

Not your website file. Re-read my comment. XAMPP comes with a default index.php file in the root directory.
JJ_Tagy
 
Posts: 788
Joined: 30. January 2012 13:44
XAMPP version: 5.5.15
Operating System: Windows 10 Pro x64

Re: XAMPP keep redirectig me to /dashboard

Postby doctorpi » 29. December 2020 19:05

Ah,sorry here it is:
Code: Select all
<?php
        if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
                $uri = 'https://';
        } else {
                $uri = 'http://';
        }
        $uri .= $_SERVER['HTTP_HOST'];
        header('Location: '.$uri.'/dashboard/');
        exit;
?>
Something is wrong with the XAMPP installation :-(
doctorpi
 
Posts: 6
Joined: 28. December 2020 17:51
XAMPP version: 7.3.25
Operating System: Mac OS Big Sur

Re: XAMPP keep redirectig me to /dashboard

Postby Altrea » 29. December 2020 19:24

That file redirects you to the Dashboard. rename or delete the file if you don't want that
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: XAMPP keep redirectig me to /dashboard

Postby doctorpi » 29. December 2020 21:48

Thanks Altrea for your reply, I've deleted the index.php and everything works now
doctorpi
 
Posts: 6
Joined: 28. December 2020 17:51
XAMPP version: 7.3.25
Operating System: Mac OS Big Sur


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 26 guests