Skip to content

Instantly share code, notes, and snippets.

@dayaki
Created March 31, 2019 00:56
Show Gist options
  • Select an option

  • Save dayaki/89c9f637b0b64affe75d281acf6c9ccd to your computer and use it in GitHub Desktop.

Select an option

Save dayaki/89c9f637b0b64affe75d281acf6c9ccd to your computer and use it in GitHub Desktop.

Revisions

  1. dayaki created this gist Mar 31, 2019.
    10 changes: 10 additions & 0 deletions laravel
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <IfModule mod_rewrite.c>

    # Turn Off mod_dir Redirect For Existing Directories
    DirectorySlash Off

    # Rewrite For Public Folder
    RewriteEngine on
    RewriteRule ^(.*)$ public/$1 [L]

    </IfModule>