• 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

.htaccess

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 › General Discussion › .htaccess

This topic is: resolved

Tagged: htaccess

  • This topic has 3 replies, 3 voices, and was last updated 12 years, 9 months ago by Tracy.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • November 18, 2013 at 3:01 pm #74022
    Tracy
    Member

    In trying to figure out problems changing my permalinks I opened up my .htaccess file and found this bit of code at the bottom it and have no idea what it means or if I put it there. Does anyone know? I actually removed it and reuploaded the file and the site seems fine and I was able to change the permalinks.

    <IfModule mod_expires.c>
    
    	ExpiresActive On
    
    	<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|PNG|gif|js|css|swf)$">
    
    		ExpiresDefault "access plus 1 years"
    
    	</FilesMatch>
    
    </IfModule>
    
    <ifmodule mod_deflate.c>
    
    	AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript
    
    </ifmodule>
    November 18, 2013 at 3:27 pm #74034
    RobG
    Member

    does not look like any code I've ever seen not sure what it means.


    To speed up the process please post the link to the website in question.

    We recommend using Firebug to view source codes http://getfirebug.com/

    RobGoss WordPress Developer
    We build WordPress websites for your business or personal goals
    http://www.robgoss.com / Follow me Twitter / https://twitter.com/robgoss

    November 18, 2013 at 6:57 pm #74088
    nutsandbolts
    Member

    Those are expires headers - they set a time period at some point in the future for certain parts of your site to be refreshed. There is also a rule for mod_deflate in there, which is a form of compression used on some servers to help your site load faster.

    Both can be helpful, but if you've switched hosts and/or aren't sure why they're there, I wouldn't worry about it. Neither rule is necessary for your site to function.


    Andrea Whitmer, Owner/Developer, Nuts and Bolts Media
    I provide development and training services for designers • Find me on Twitter and Google+

    November 18, 2013 at 7:07 pm #74090
    Tracy
    Member

    thankyou both for your replies, I probably should have waited to get an answer before removing it but I did save it and took a chance.
    Thankyou

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘.htaccess’ is closed to new replies.

CTA

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

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 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