• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Where is the .htaccess file? – Balance theme

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Where is the .htaccess file? – Balance theme

This topic is: not resolved

Tagged: hidden files, htaccess

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 11 months ago by mariafernandez.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • January 10, 2013 at 4:43 am #10899
    mariafernandez
    Member

    I need to edit my .htaccess file to add some code to it to make my blog faster. The problem is, I can't seem to find it. Does anyone know where it is?

    January 10, 2013 at 4:52 am #10901
    Brad Dalton
    Participant

    Its normally in your public_html root directory (WordPress files) not in your theme files.

    I'd be careful editing that file unless you know what you are doing. (backup first)

    Any good web host will help you with that file.

    What are you trying to make faster? Where did you get the code or tutorial to do this?


    Tutorials for StudioPress Themes.

    January 10, 2013 at 5:36 am #10911
    mariafernandez
    Member

    I've added this code to my website .htaccess file (not my blog), and it has improved the speed substantially:

    -----------

    <FilesMatch "\.(ico|jpg|jpeg|png|gif|js|css|swf)$">
    <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault "access plus 30 days"
    </IfModule>
    Header unset ETag
    FileETag None
    </FilesMatch>
    --------------

    I wanted to add it to my blog too. Is it a good idea?

    January 10, 2013 at 5:38 am #10912
    mariafernandez
    Member

    Actually, the code for my WP blog would be:
    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType application/pdf "access plus 1 month"
    ExpiresByType text/x-javascript "access plus 1 month"
    ExpiresByType application/x-shockwave-flash "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 year"
    ExpiresDefault "access plus 2 days"
    </IfModule>
    ## EXPIRES CACHING ##

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble