Skip to content

Commit

Permalink
Improve comments and spacing in htaccess templates
Browse files Browse the repository at this point in the history
  • Loading branch information
raamdev committed Jun 27, 2016
1 parent 656098f commit 2ff024b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/includes/templates/htaccess/browser-caching-enable.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Client-side caching.

# Enable browser caching.

FileETag mtime size

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

# Force NO trailing slash on all virtual requests (except WP admin area)

<IfModule rewrite_module>
RewriteEngine On
RewriteBase /
Expand Down
3 changes: 3 additions & 0 deletions src/includes/templates/htaccess/canonical-urls-ts-enable.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

# Force a trailing slash on all virtual requests (except WP admin area)

<IfModule rewrite_module>
RewriteEngine On
RewriteBase /
Expand Down
3 changes: 3 additions & 0 deletions src/includes/templates/htaccess/cdn-filters.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@

# Send Access-Control-Allow-Origin header for Static CDN Filters

<IfModule headers_module>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
Expand Down
3 changes: 2 additions & 1 deletion src/includes/templates/htaccess/gzip-enable.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# GZIP compression.

# Enable GZIP compression.

<IfModule deflate_module>
<IfModule filter_module>
Expand Down

0 comments on commit 2ff024b

Please sign in to comment.