Skip to content

Instantly share code, notes, and snippets.

@ldonjibson
Forked from ivandoric/.htaccess
Last active November 17, 2021 08:27
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 ldonjibson/fdd99ecc179fd5fd0b37ebfadb5362f3 to your computer and use it in GitHub Desktop.
Save ldonjibson/fdd99ecc179fd5fd0b37ebfadb5362f3 to your computer and use it in GitHub Desktop.
.htaccess file for video tutorial about deploying Node apps (STRAPI, NEXT, NUXT) to shared hosting. Checkout the video: https://www.youtube.com/watch?v=ebWJbbUT4TA
RewriteEngine On
RewriteRule ^$ http://127.0.0.1:8080/ [P,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ http://127.0.0.1:1337/$1 [P,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment