My site works in Wamp Server localhost but doesn't in InfinityFree

@WhiteTiger12323

Now create a .htaccess file at root (in htdocs)

and put this content in:

#Disable Directory Listings in this Directory and Subdirectories
Options -Indexes

so no one can view the contents of your folders.

It is recommended to do it via file manager from CA (monstaFTP)
because some other txt editors may add BOM or wrong charset (not UTF-8)



9 Likes