dimanche 27 septembre 2020

Redirect url in laravel

My website Was run with laravel But its address is displayed in Google in this way👇👇

https://ift.tt/3cxlC1G

How i can delete (public) from my url?

This is my .htaccess codes:👇

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
   RewriteRule ^(.*) http://%1/$1 [R=301,NE,L]
   RewriteRule ^(.*)$ public/$1 [L]
   
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2EFLnQU
via IFTTT

Aucun commentaire:

Enregistrer un commentaire