PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, July 2, 2022

[FIXED] How to disable localhost/dashboard directory listing in xampp

 July 02, 2022     xampp     No comments   

Issue

Whenever I open localhost it redirects to this directory listing. Previously it used to show the index.html page "Welcome to XAMPP" now it shows directory listing. How do I revert it?

enter image description here


Solution

For whatever reason if xampp stops recognizing the dashboard index.html file simply edit xampp/htdocs/index.php file and edit the following line and add /index.html at the end of the line.

header('Location: '.$uri.'/dashboard/index.html');

This will make sure that the index.html is loaded rather than displaying the Directory listing.



Answered By - Taha Khan
Answer Checked By - David Goodson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing