• I dont know anything about .htaccess file!!! Im not sure, Can i use these settings?! Should i change something??

    # This denies all web access to your wp-config file, error_logs, # php.ini, and htaccess/htpasswds.
    <FilesMatch “^.*(error_log|wp-config\.php|php.ini|\.[hH][tT][aApP].*)$”>
    Order deny,allow
    Deny from all
    </FilesMatch>

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /life/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /life/index.php [L]
    </IfModule>
    <IfModule mod_headers.c>
    <FilesMatch “.(js|css|html|php)$”>
    Header append Vary: Accept-Encoding
    </FilesMatch>
    </IfModule>
    ## EXPIRES HEADER CACHING ##

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    AddType image/svg+xml .svg
    AddOutputFilterByType DEFLATE image/svg+xml
    ExpiresByType image/x-icon “access plus 1 year”
    ExpiresByType application/json “access plus 0 seconds”
    ExpiresByType application/ld+json “access plus 0 seconds”
    ExpiresByType application/xml “access plus 0 seconds”
    ExpiresByType text/xml “access plus 0 seconds”
    ExpiresByType application/x-web-app-manifest+json “access plus 0 seconds”
    ExpiresByType text/cache-manifest “access plus 0 seconds”
    ExpiresDefault “access plus 1 months”
    </IfModule>
    ## EXPIRES CACHING ##

    #Alternative caching using Apache’s “mod_headers”, if it’s installed.
    #Caching of common files – ENABLED
    <IfModule mod_headers.c>
    <FilesMatch “\.(ico|pdf|flv|swf|js|css|gif|png|jpg|jpeg|txt|html|htm|svg)$”>
    Header set Cache-Control “max-age=2592000, public”
    </FilesMatch>
    </IfModule>

    • This topic was modified 6 years, 1 month ago by apollo789.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess file i can use this setting for wordpress?’ is closed to new replies.