summaryrefslogtreecommitdiffstats
path: root/front/odiparpack/app/.htaccess
diff options
context:
space:
mode:
authorgabrhr <[email protected]>2022-04-20 10:19:29 -0500
committergabrhr <[email protected]>2022-04-20 10:19:29 -0500
commite13e630cd6e4fc0b1ff92098a28a770794c7bb9a (patch)
treee68ad2f947d1b3ec454529b35f37ca2f223e5431 /front/odiparpack/app/.htaccess
parent457816ac1129fcc6019d2fc795b6693ee6776d59 (diff)
downloadDP1_project-e13e630cd6e4fc0b1ff92098a28a770794c7bb9a.tar.gz
DP1_project-e13e630cd6e4fc0b1ff92098a28a770794c7bb9a.tar.bz2
DP1_project-e13e630cd6e4fc0b1ff92098a28a770794c7bb9a.zip
AƱadir plantilla
Base para front
Diffstat (limited to 'front/odiparpack/app/.htaccess')
-rw-r--r--front/odiparpack/app/.htaccess52
1 files changed, 52 insertions, 0 deletions
diff --git a/front/odiparpack/app/.htaccess b/front/odiparpack/app/.htaccess
new file mode 100644
index 0000000..40252ae
--- /dev/null
+++ b/front/odiparpack/app/.htaccess
@@ -0,0 +1,52 @@
+<ifModule mod_rewrite.c>
+
+
+ #######################################################################
+ # GENERAL #
+ #######################################################################
+
+ # Make apache follow sym links to files
+ Options +FollowSymLinks
+ # If somebody opens a folder, hide all files from the resulting folder list
+ IndexIgnore */*
+
+
+ #######################################################################
+ # REWRITING #
+ #######################################################################
+
+ # Enable rewriting
+ RewriteEngine On
+
+ # If its not HTTPS
+ RewriteCond %{HTTPS} off
+
+ # Comment out the RewriteCond above, and uncomment the RewriteCond below if you're using a load balancer (e.g. CloudFlare) for SSL
+ # RewriteCond %{HTTP:X-Forwarded-Proto} !https
+
+ # Redirect to the same URL with https://, ignoring all further rules if this one is in effect
+ RewriteRule ^(.*) https://%{HTTP_HOST}/$1 [R,L]
+
+ # If we get to here, it means we are on https://
+
+ # If the file with the specified name in the browser doesn't exist
+ RewriteCond %{REQUEST_FILENAME} !-f
+
+ # and the directory with the specified name in the browser doesn't exist
+ RewriteCond %{REQUEST_FILENAME} !-d
+
+ # and we are not opening the root already (otherwise we get a redirect loop)
+ RewriteCond %{REQUEST_FILENAME} !\/$
+
+ # Rewrite all requests to the root
+ RewriteRule ^(.*) /
+
+</ifModule>
+
+<IfModule mod_headers.c>
+ # Do not cache sw.js, required for offline-first updates.
+ <FilesMatch "sw\.js$">
+ Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
+ Header set Pragma "no-cache"
+ </FilesMatch>
+</IfModule>