Snippets Collections
<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>
php_value upload_max_filesize 256M
php_value post_max_size 256M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
## EXPIRES HEADER CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/svg "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
## EXPIRES HEADER CACHING ##
Options +Indexes
IndexOptions FancyIndexing
IndexIgnore README .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>
# Inside .htaccess

SetEnvIf Host projectname\.com$ TYPO3_CONTEXT=Production
SetEnvIf Host projectname\.test$ TYPO3_CONTEXT=Development

# or you can just force it by using

SetEnv TYPO3_CONTEXT Development
star

Thu Jun 09 2022 10:50:24 GMT+0000 (UTC) https://stackoverflow.com/questions/13421463/htaccess-access-control-allow-origin

#htaccess
star

Mon Dec 06 2021 16:21:05 GMT+0000 (UTC)

#htaccess #redirect
star

Wed Nov 24 2021 02:46:06 GMT+0000 (UTC)

#htaccess #redirect
star

Wed Nov 24 2021 02:45:15 GMT+0000 (UTC)

#htaccess #redirect
star

Mon Nov 22 2021 19:22:51 GMT+0000 (UTC) https://kinsta.com/nl/kennisbank/voeg-expires-headers-wordpress/

#wordpress #htaccess
star

Mon Jun 07 2021 16:07:55 GMT+0000 (UTC)

#htaccess #webserver #http
star

Fri May 28 2021 11:05:45 GMT+0000 (UTC) https://seoagentur-hamburg.com/blog/3588/

#htaccess #webserver #http

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension