cancel
Showing results for 
Search instead for 
Did you mean: 

Missing htaccess file inside pub/static folder

SOLVED

Missing htaccess file inside pub/static folder

While I was  removing static folder recursive files and directory deleted .htaccess file too

 

Is there any way I can get the  file again?

 

Can Anyone help? It will be highly appreciated

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Missing htaccess file inside pub/static folder

Hi @krishenuetb254 

 

You can find the .htaccess file from below path :

 

https://github.com/magento/magento2/tree/2.4-develop/pub/static

 

Hope it may help you!

Problem Solved! Click Kudos & Accept as a Solution!

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!

View solution in original post

3 REPLIES 3

Re: Missing htaccess file inside pub/static folder

Hi @krishenuetb254 

 

You can find the .htaccess file from below path :

 

https://github.com/magento/magento2/tree/2.4-develop/pub/static

 

Hope it may help you!

Problem Solved! Click Kudos & Accept as a Solution!

Hope this helps you!
Problem Solved! Click Kudos & Accept as Solution!

Re: Missing htaccess file inside pub/static folder

Hi @krishenuetb254 ,

 

You can download corresponding file from the official Magento 2 repository. That will solve your problem.

 

Hope this helps you!

Problem Solved! Click Kudos & Accept as Solution!

Re: Missing htaccess file inside pub/static folder

Hi @Madhu Rajawat  

Thanks for quick Solution. Solved.