Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

Questions tagged [directory-index]

The default file that gets shown when for a directory on a web server, usually index.html

Filter by
Sorted by
Tagged with
1
vote
1answer
33 views

How does the base URL of a website show the contents of home.php?

My server only contains some files like home.php, this.php, that.php, etc. But when I type my website (example.com), how does it show the contents of example.com/home.php?
1
vote
0answers
41 views

Is it safe to give write permission to index.php file?

Today I accidentally gave write permission to my index.php file to using sudo chmod +x index.php. I don't know what permission it had before. My index.php contains a php script for collecting number ...
3
votes
0answers
39 views

Nginx doesn't show a directory index unless I have the non-gziped index.html when I can just provide the .html.gz of other files

My site is full of pre-compressed gzip files. In all cases, except for the index.html file, I don't need the non-gzip versions. For example, if I have 1.html.gz, then I don't need to also have 1.html ...
1
vote
2answers
9k views

500 Server Error: Cannot serve directory: No matching directory index

I recently purchased a GoDaddy hosting package and uploaded all of my website files written primarily in PHP from scratch. But when I try going to my site, it only loads the head portion of the file ...
3
votes
2answers
2k views

Using one index file in all directories and subdirectories

I have an index.php file, which processes content of a directory it is located in and renders output to the browser. The problem is that the directory structure it is supposed to serve is rather ...
2
votes
0answers
43 views

Is it the responsibility of the web client or server to use the directory index file for the home page?

The Cengage Learning textbook New Perspectives on Microsoft Office 2013 says this on page IB5: If a URL does not include a filename, many web browsers will load the file that contains the website's ...
1
vote
3answers
3k views

301 redirect from “/index.html” to root if index.html not exist

Can I create 301 redirect from "index.html" to root directory if file "index.html" not exist? For example: link "http://example.com/index.html" show "404 Error" page. I need 301 redirect to root ...
3
votes
3answers
2k views

How to remove /index.html

How to make redirect /index.html -> / in Apache? Redirect /index.html http://domain-name.com/ Is causeing infinite loop when opening home page.
9
votes
2answers
7k views

The right way of using index.html

I have quite a lot of issues I'd like to hear your opinion on, so I hope I'll manage to explain it well enough. I should also note that I'm beginner equipped only with the knowledge of HTML and CSS so ...
2
votes
2answers
1k views

What's the purpose of index.html

If I maintain www.example.com, does accessing it mean I would open index.html in its root directory?
2
votes
2answers
186 views

Rewrite Issue on index.html

I have index.html on my html_directory on my website also I entered a rule as follows: RewriteRule ^index.html$ newindex.php It seems requests to my site is routing to my index.html file , my ...