0

Here is my website url of pub folder https://www.marketplace.jawadditaksal.org/pub/

when I installed Magento in the server by default Magento adds two .htaccess files: one in the domain directory and one in /pub, which I have renamed to ".htaccess_no" because at that time website css was not working so in the pub folder I renamed the htacess file from "htacess" to "htacess_no" and website was working and which is now working also.

But the problem is when user open the url https://www.marketplace.jawadditaksal.org/pub/ its shows the website in a wrong way, what is the solution of the pub folder index file, how normally Magento websites handle pub folder. should I add empty index file in the pub folder?

  • Don't rename htaccess of pub folder. Are you running your website from pub folder? – Sukumar Gorai Mar 27 at 13:14
  • why are you trying /pub when marketplace.jawadditaksal.org is just working fine – Philipp Sander Mar 27 at 13:14
  • @SukumarGorai no I am not running my website from pub folder, problem was when I installed the magento 2.3 with the demo, at that time main domain directory website css was not working so my server company found the solution that to rename the htacess file of the pub folder, at that time website was working which is also working now, but problem is when someone manually open the website pub folder websitename/pub then on that case it shows the pub folder index file which looks bad. – winnersingh Mar 27 at 13:25
  • @PhilippSander Website is working fine because I edit the name of the .htacess file which is in the pub folder previous name was .htacess at present its name is htacess_no but problem is when someone manually open the website pub folder websitename/pub then on that case it shows the pub folder index file which looks bad – winnersingh Mar 27 at 13:28
  • you should not do ANYTHING with the .htaccess in pub. why did you change it? – Philipp Sander Mar 27 at 13:32

Your Answer

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

Browse other questions tagged or ask your own question.