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. Commented Aug 27, 2018 at 13:25
  • @BhaskarCPothineni is this solution solve your problem ? if yes then feel free to mark as accepted Commented Aug 28, 2018 at 7:05

Your Answer

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

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