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.


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. – Bhaskar C Pothineni Aug 27 '18 at 13:25
  • @BhaskarCPothineni is this solution solve your problem ? if yes then feel free to mark as accepted – Murtuza Zabuawala Aug 28 '18 at 7:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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