January 28, 2023


The complete guide to the beginners as well as to the experienced Web Developers

htaccess for Access public directory from URL

Actually, JS, CSS, FONT directory inside public folder and want to access directory from different URL so you need just paste below code in htaccess file

.htaccess (.htaccess is a configuration file for use on web servers running the Apache Web Server software.These facilities include basic redirect functionality, for instance, if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hotlink prevention.)

 Directory structure of project folder like

So normally you can’t access from below URL

Add .htaccess file inside project folder and write below code then you can access folder from above URL