Skip to content

Instantly share code, notes, and snippets.

@Sharifur
Created October 11, 2023 14:15
Show Gist options
  • Save Sharifur/9ce9f298b3263fd2ca394ac3149007bd to your computer and use it in GitHub Desktop.
Save Sharifur/9ce9f298b3263fd2ca394ac3149007bd to your computer and use it in GitHub Desktop.
How to remove public from laravel project using htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
#add this file in the root folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment