Iam aware of the CSS files path issues with the changes...
.htaccess + subdirectory issues
Hi my friends, I will try to explain my issue in the best way i can.
My main domain points to a structure like this. (www.armada-lusitana.org - LIVE)
*Root/www
forum
project1
project2
laravel
entry
Entry is where i have the "public" directory of laravel, because i dont want its contents to mess with forum, project1, project2, and others directories, some of them of several other domains. "laravel" its the laravel content, packages, views, etc...
When i access www.armada-lusitana.org, it goes to http://armada-lusitana.org/entry/, all is working so far... *My objective is to hide the "/entry/" from url...
*My attempt via ".htaccess" (Root/www)
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?armada-lusitana.org$
RewriteCond %{REQUEST_URI} !^/entry/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /entry/
RewriteCond %{HTTP_HOST} ^(www.)?armada-lusitana.org$
RewriteRule ^(/)?$ entry/index.php [L]
</IfModule>
*".htaccess" (Root/www/entry) - default laravel .htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ / [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Now the issue, After this changes, after some searches on google, i should have the "entry" hidden from url, but its not. But this happens only when i open the website www.armada-lusitana.org or armada-lusitana.org, because it redirects or goes to www.armada-lusitana.org/entry/... If i directly delete the "/entry/" from the url, and clicke the buttons etc, it works good, and removes the "entry" from the url...
What iam missing here, my knowledge about .htaccess is not very good, so iam limited to copy pastes from google and alter them... maybe i need something more.
Thank you for your time to read, and for the help.
Please or to participate in this conversation.