Created
June 3, 2021 12:31
-
-
Save ahmed-abdelazim/fcabb39af9b003e09ae783fcdc74d074 to your computer and use it in GitHub Desktop.
NodeJs htaccess for apache ONLY resources folder
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 | |
RewriteRule ^$ http://127.0.0.1:3020/ [P,L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
#RewriteRule ^(.*)$ http://127.0.0.1:3020/$1 [P,L] | |
RewriteRule ^/?resources/(.*)$ http://127.0.0.1:3020/resources/$1 [L,P] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment