I have searched extensively about this problem and haven't been able to find a solution. I'm working locally, so I have this URL:
http://localhost/IASON/iasongitlab/static_website/html/solutions.html
I have managed to hide the file extension, so now my URL are like this:
http://localhost/IASON/iasongitlab/static_website/html/solutions
But now I need to hide the /html/ folder from my URL, so that it looks like this:
http://localhost/IASON/iasongitlab/static_website/solutions
This is just an example. I have multiple views, so I need to code in htaccess to hide the /html/ folder on each view.
This is my htaccess file now:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
I have tried multiple suggestions without success, and would appreciate any insight into solving this problem.