I'm making a website, and my index is a php file, whereas the other 6 pages are html. Whenever I click on the "Home" button, it says that it can't find index.html, but that's obvious because it's called index.php. Any way to fix this? If I'm being too vague, then please let me know what information I can provide you with to help you help me. Thank you!
rfrapp
17
Junior Poster in Training
Recommended Answers
Jump to PostDo checked your home menu URL ? What u have provide? index.php (or) index.html ?
Jump to PostHi rfrapp,
I'm guessing your 'home' button doesn't actually link directly to index.php but just to the root directory. When a directory address is requested, the default action is for it to load index.html
You can change this by adding the following line to a .htaccess file
DirectoryIndex …
All 7 Replies
mohamedasif18
0
Junior Poster in Training
rfrapp
17
Junior Poster in Training

Zagga
rfrapp
17
Junior Poster in Training

diafol

Zagga
rfrapp
17
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.