Created
November 15, 2019 14:59
-
-
Save MagedAhmad/496c82c1e0b01f7b9516ecedde74ae4b 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
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{THE_REQUEST} /public/([^\s?]*) [NC] | |
| RewriteRule ^ %1 [L,NE,R=302] | |
| RewriteRule ^((?!public/).*)$ public/$1 [L,NC] | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteRule ^(.*)$ /index.php?/$1 [L] | |
| </IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment