Created
August 28, 2017 15:29
-
-
Save moabi/271d487691972e0e6ea6cfefda7a0401 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteCond %{THE_REQUEST} public/ | |
RewriteRule ^public/(.*) http://site.dev/$1 [R=301,L] | |
RewriteCond %{REQUEST_URI} !public/ | |
RewriteRule ^(.*)$ /public/$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment