Jump to content

index.php in all theme folders


Recommended Posts

Hi everyone!

 

I'm currently designing a theme and I have a question about why there is a index.php file placed in all folders in the default theme? Whats the purpose of all these index.php files?

 

All the best.

Link to comment
Share on other sites

Hi everyone!

 

I'm currently designing a theme and I have a question about why there is a index.php file placed in all folders in the default theme? Whats the purpose of all these index.php files?

 

All the best.

 

an empty index.php is in most cases for the purpose to prevent access to the folder. If somebody calls the link to the directory they will see a white screen. If there was no index.php they could see a list of the files included in the folder.

Link to comment
Share on other sites

  • 2 weeks later...

Hi everyone!

 

I'm currently designing a theme and I have a question about why there is a index.php file placed in all folders in the default theme? Whats the purpose of all these index.php files?

 

All the best.

 

an empty index.php is in most cases for the purpose to prevent access to the folder. If somebody calls the link to the directory they will see a white screen. If there was no index.php they could see a list of the files included in the folder.

 

 

Is there a solution to have this index.php file automatically inserted in every folder (really all of them) inside my prestashop installation?

For existing, but also for future folders.

 

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...