Upgrade to Pro — share decks privately, control downloads, hide ads and more …

WCTO:Dev 2012: Getting started with .htaccess f...

Shannon Smith
November 03, 2012

WCTO:Dev 2012: Getting started with .htaccess for WordPress

An introduction on how to configure your .htaccess file to do more than what WordPress provides by default. The talk will cover basics like setting up a preferred URL, and redirecting old page URLs for better SEO. How to optimize your site's files using gzip will also be covered, as well as preventing image hot linking, and more. A sample .htaccess file will be provided to all attendees. A useful introduction to a very important file for any shared hosting environment.

Shannon Smith

November 03, 2012
Tweet

More Decks by Shannon Smith

Other Decks in Technology

Transcript

  1. What We’ll Cover ✤ Introduction ✤ Getting Started ✤ .htaccess

    for SEO ✤ .htaccess for Security ✤ .htaccess for Optimization ✤ Resources ✤ Closing
  2. What Is an .htaccess File? .htaccess files (or “distributed configuration

    files”) provide a way to make configuration changes on a per-directory basis Official Apache Documentation
  3. In English, Please? .htaccess is a configuration file for use

    on web servers running the Apache Web Server software
  4. When Can We Use .htaccess ? ✤ Apache Web Server

    software ✤ Linux/Unix server ✤ Shared Hosting
  5. Why Isn’t It Working? “We don’t allow that for security

    reasons". Your Hosting Provider Photo:Sam Howzit
  6. Basic Rules of SEO ✤ Don’t repeat yourself ✤ Don’t

    repeat yourself ✤ Don’t repeat yourself Photo: jerebu
  7. Resources ✤ Official Apache Documentation http://httpd.apache.org/docs/2.4/howto/htaccess.html ✤ .htaccess made easy

    by Jeff Starr http://htaccessbook.com ✤ Protect your WordPress site with .htaccess (.net magazine) http://www.netmagazine.com/tutorials/protect-your-wordpress-site-htaccess ✤ Comprehensive guide to .htaccess http://www.javascriptkit.com/howto/htaccess.shtml ✤ The Ultimate Guide to .htaccess Files (Nettuts) http://net.tutsplus.com/tutorials/other/the-ultimate-guide-to-htaccess-files/ ✤ Practical Mod_Rewrite for Web Developers http://www.snipe.net/2009/02/practical-mod_rewrite/ ✤ mod_rewrite Cheat Sheet http://www.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/ ✤ Stupid htaccess Tricks http://perishablepress.com/stupid-htaccess-tricks/