Skip to content

Instantly share code, notes, and snippets.

View jamesapollo's full-sized avatar
🎯
Focusing

James Apollo jamesapollo

🎯
Focusing
View GitHub Profile
@iPublicis
iPublicis / .htaccess
Last active November 4, 2024 00:57
NODE.JS app in Apache - force www. and https: sample .htaccess, skip images or other files desired - partialy based on vielhuber/.htaccess
#########################
#
# NODE.JS app running in Apache
# sample .htaccess - partialy based on vielhuber/.htaccess
# Read also https://gist.github.com/vielhuber/f2c6bdd1ed9024023fe4
# Also rules to enforce www. prefix and https: SSL access and avoid extra processing for any file defined.
#
# This file must be on the dir where Apache expects to find the website
# The Node App can be anywhere else but must be accessible as explained below.
#