Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hidayat3676's avatar

xampp not pointing to htdocs

my localhost is not pointing to htdocs when i type in browser localhost it directly point to a subdirectery which is in htdocs like this htdocs >> blog>>index.php it directly is pointing to index.php which is inside blog folder and blog folder is inside htdocs what should i do

0 likes
7 replies
jlrdw's avatar

What is blog/index? Is it a laravel application, or something else you installed. If something else, that application may have made an entry in your httpd.conf.

Without detailed information it is hard to help.

Sys32's avatar

Please attach your apache config for xampp

QuentinWatt's avatar

Copy everything in htdocs and move it somewhere else and remove it from htdocs. If you can visit the root localhost after that, then you know it's a problem with the project.

If you still can't, then you know it's a Xampp problem.

It could be any of these:

  • .htaccess redirect (easier to fix)
  • your xampp server is mapped to the sub-directory (more complicated)

It could also be a few other things I haven't even thought of.

1 like
jlrdw's avatar

You may be better backing up everything and uninstalling xampp, and just doing a new install.

Please or to participate in this conversation.