I'm having a hard time creating a configuration in .htaccess to hide a folder from my site.
My domain has the following structure: www.site.com.br/cake, where are the files and folders related to the project. I want to hide the / cake directory, showing only the domain on all pages, www.site.com.br /
The current .htaccess file has the following configuration:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
I've tried:
RewriteCond %{HTTP_HOST} ^(www.)?site.com.br$
RewriteCond %{REQUEST_URI} !^/cake/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /
RewriteCond %{HTTP_HOST} ^(www.)?site.com.br/$
RewriteRule ^(/)?$ cake/index.php [L]
And it does not work, it gives 500 error. Can you help me?