Skip to content

Instantly share code, notes, and snippets.

@ahmed-abdelazim
Created June 3, 2021 12:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmed-abdelazim/fcabb39af9b003e09ae783fcdc74d074 to your computer and use it in GitHub Desktop.
Save ahmed-abdelazim/fcabb39af9b003e09ae783fcdc74d074 to your computer and use it in GitHub Desktop.
NodeJs htaccess for apache ONLY resources folder
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