Tag: htaccess

  • WP Super Cache and Browser Caching

    I’ve been jamming on WP Super Cache these days. As great as Super Cache is (and it is great), however, you will consistently be failing in YSlow’s “Expires Headers”, Web Page Test’s “Cache Static Content”, and Google Page Speed Insights’ “Leverage Browser Caching”. Shouldn’t a plugin with name “Super Cache” take care of all things…

    ,
  • Redirect primary domain to a subfolder using .htaccess

    I recently switched hosting from Dreamhost to Lithium Hosting – seems like a solid switch so far. Migrating hosts is certainly frustrating especially since Dreamhost uses a proprietary cPanel. A particular issue is that I like to keep all of my domains in subdirectories of public_html. Dreamhost does this automatically, even with your root domain,…

  • Remove .php from URLs [Snippet]

    When making custom sites, I separate my code into various php files that each include a consistent header and footer so that I don’t have to deal with verbose, redundant HTML files. By default you end up with gross URLs like mysite.com/contact.php. Make it mysite.com/contact by adding this to your .htaccess file and replacing index|about|..…