EEGL/eegl-angular-app-lamp/master/.htaccess
Satisfy Any
<ifModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
# --------------
# API routes
# --------------
RewriteRule ^api/(.*)$ api/$1 [L,NC]
# --------------
# Crawlers
# --------------
RewriteCond %{HTTP_USER_AGENT} (facebookexternalhit/[0-9]|Twitterbot|Pinterest)
RewriteRule ^(.*)$ /api/crawler?url=$1 [NC,L]
# --------------
# Staging: Node.js proxy
# checks domain extension, use the proxy if .dev
# --------------
RewriteCond %{HTTP_HOST} ^(.+).(dev)$
RewriteRule ^(.*)$ http://localhost:9000/$1 [NC,L,P]
# --------------
# Production: Angular routes
# * htaccess in subfolder will take care of routing for AngularJS
# --------------
RewriteRule ^(.*)$ /dist/$1 [NC,L]
</ifModule>
On Github License
Files