My web server initially pointed to magento root directory, then the site is working properly. Actually it is recommended to point to the pub folder. When i pointed my webserver to pub folder the css is not loading .

Can anyone give a me a solution???Thanks.


1 Answer 1


I think you are missing .htaccess file in your pub directory

download below .htaccess file and put it to pub directory


  • Tq for your Concern. Aug 27, 2018 at 13:25
  • @BhaskarCPothineni is this solution solve your problem ? if yes then feel free to mark as accepted Aug 28, 2018 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.