简体   繁体   中英

Needs indexes to redirect to HomePage if not logged-in in Php

I am having a problem in the simple webpage I've been working for. After I uploaded it in the network,some of the files are visible like this 在此输入图像描述

I hope someone can help me with my problem.

Just place an .htaccess file in your root web directory with this information:

Options -Indexes

This will prevent the contents of your directory from being listed. You can also place a blank index.html file in there and that would show a blank page when someone attempted to open up that directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM