lundi 1 juin 2020

Remove public from url hosted in sub domain in Laravel

I have hosted my Laravel site in sub domain, its url is something like this:

https://mymaindomain.com/subfolder/public/about-us

Now i want to remove the public from url, my .htaccess file is like:

<IfModule mod_rewrite.c>
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}/beta [L,R=301]
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire