How to include my public folder name to my image link etc

Laraship QuestionsCategory: TechnicalHow to include my public folder name to my image link etc
Salami Samuel asked 6 years ago
How can i put in my public folder name to my product, category, brand code. Example from /media/user to /public/media/user etc. Right now, what ever i upload from backend on category, product etc isnt showing on front end cos of the public folder name thats not included.
1 Answers
Best Answer
laraship Staff answered 6 years ago
There is no need to put a public prefix to your images, you should make your www folder to point at public folder OR add .htaccess to the root folder with this content:    <IfModule mod_rewrite.c>
RewriteEngine On RewriteRule ^(.*)$ public/$1 [L]
</IfModule>