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

Friday, January 14, 2022

[FIXED] Default file for Apache localhost

 January 14, 2022     apache2, html, lamp, php     No comments   

Issue

I have apache2 installed. When i type http://localhost it goes to a file http://localhost/class/index.php . How do i change it to say http://localhost/index.html or any other page? Which file will I find the setting to do this? Thanks!


Solution

Apache will not trigger HTTP redirections unless you instruct it to do so.

My advice is that you open your favourite text editor and search for the class string in the following locations:

  • *.conf files inside the Apache installation directory.
  • .htaccess files inside your HTML directores.

If that fails to find anything, you could also search for header() calls in your *.php code.



Answered By - Álvaro González
  • 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