Change urls default options
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<IfModule !mod_filter.c>
|
||||
# Legacy versions of Apache
|
||||
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
|
||||
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
|
||||
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
|
||||
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
|
||||
</IfModule>
|
||||
|
||||
@@ -36,14 +36,14 @@
|
||||
ExpiresDefault "access plus 1 month"
|
||||
ExpiresByType text/cache-manifest "access plus 0 seconds"
|
||||
ExpiresByType text/html "access plus 0 seconds"
|
||||
|
||||
|
||||
ExpiresByType text/xml "access plus 0 seconds"
|
||||
ExpiresByType application/xml "access plus 0 seconds"
|
||||
ExpiresByType application/json "access plus 1 day"
|
||||
|
||||
ExpiresByType application/rss+xml "access plus 1 hour"
|
||||
|
||||
ExpiresByType image/x-icon "access plus 1 week"
|
||||
ExpiresByType image/x-icon "access plus 1 week"
|
||||
|
||||
ExpiresByType image/gif "access plus 1 month"
|
||||
ExpiresByType image/png "access plus 1 month"
|
||||
@@ -56,21 +56,21 @@
|
||||
ExpiresByType audio/webm "access plus 1 month"
|
||||
|
||||
ExpiresByType text/x-component "access plus 1 month"
|
||||
|
||||
|
||||
ExpiresByType font/truetype "access plus 1 month"
|
||||
ExpiresByType font/opentype "access plus 1 month"
|
||||
ExpiresByType application/x-font-woff "access plus 1 month"
|
||||
ExpiresByType image/svg+xml "access plus 1 month"
|
||||
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
|
||||
|
||||
|
||||
ExpiresByType text/css "access plus 1 year"
|
||||
ExpiresByType application/javascript "access plus 1 year"
|
||||
ExpiresByType text/javascript "access plus 1 year"
|
||||
|
||||
|
||||
<IfModule mod_headers.c>
|
||||
Header append Cache-Control "public"
|
||||
</IfModule>
|
||||
|
||||
|
||||
</IfModule>
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ RewriteRule get-asset-(\w*) admin/assets?t=$1&%{QUERY_STRING} [L,NC]
|
||||
</IfModule>
|
||||
|
||||
|
||||
Options -MultiViews
|
||||
Options -MultiViews
|
||||
|
||||
ErrorDocument 400 /400.php
|
||||
ErrorDocument 401 /401.php
|
||||
@@ -104,8 +104,8 @@ Options -Indexes
|
||||
RewriteRule "(^|/)\." - [F]
|
||||
|
||||
# Sections
|
||||
RewriteRule ^.*-([a-zA-Z]{2})-([0-9]+) index.php?%{query_string}&s=$2&lang=$1
|
||||
|
||||
RewriteRule ^([a-zA-Z]{2})/([0-9]+)/([^/]+) index.php?%{query_string}&s=$2&lang=$1&slug=$3
|
||||
|
||||
# Charcoal
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
@@ -36,9 +36,12 @@
|
||||
"objects": [],
|
||||
"apis": [],
|
||||
"default_template_controller":"Boilerplate_Template_Controller",
|
||||
"url_options": {
|
||||
"use_rewrite": true
|
||||
},
|
||||
"url_options":{
|
||||
"use_rewrite":true,
|
||||
"lowercase":true,
|
||||
"use_dash":true,
|
||||
"remove_punctuation":true
|
||||
},
|
||||
"debug":{
|
||||
"active":false
|
||||
}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"url_options":{
|
||||
"use_rewrite":true
|
||||
"rewrite_pattern":{
|
||||
"fr":"fr/{{:id}}/{{title:url}}",
|
||||
"en":"en/{{:id}}/{{title:url}}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user