Page 1 of 1

click menu link it opens up the xampp dashboard instead of

PostPosted: 01. September 2022 23:16
by Sonictech
I open my site on localhost/mstl but when you click on a menu link it goes to the following link:http://localhost/dashboard/ instead of http://localhost/mstl/products.

can I please get some feedback on this to try and help.

all my other post just get views, and no answers or help.

thanks for any help, I can get.
Shawn

Re: click menu link it opens up the xampp dashboard instead

PostPosted: 01. September 2022 23:30
by Altrea
is your menu link routing to localhost/index.php instead of localhost/mstl/index.php?
check your application. key words: RewriteBase, base url

Re: click menu link it opens up the xampp dashboard instead

PostPosted: 02. September 2022 00:40
by Sonictech
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
$uri = 'https://';
} else {
$uri = 'http://';
}
$uri .= $_SERVER['HTTP_HOST'];
header('Location: '.$uri.'/mstl/index.php');
exit;
?>
Something is wrong with the XAMPP installation :-(

now all links goto index.php instead of the page the menu link is suppose too.

Re: click menu link it opens up the xampp dashboard instead

PostPosted: 02. September 2022 06:02
by Altrea
Changing the XAMPP index.php is not the right solution