• Categories

  • Toolbox

    Unzilla
    Dreamhost
    Hostgator
    OpenDNS
    Fax It Nice
    Freshbooks: Painless Billing
    MacBook Air
    TextMate
    Panic Transmit
    PayPal Merchant Account
    NTFS for MacĀ® OS X
  • Recent Comments

  • Archives





  • OS News

    Mandriva and PTech Announce Low-cost Desktop
    Lazy Linux: 10 Essential Tricks for Admins
    Benchmarking Microsoft Word From 95 To 2007
    Vector Linux SOHO 5.9 Deluxe -- Not Just For The Office
    Face Off: Windows vs Linux Real World RAM and Disk Tests
    Anatomy of Linux Loadable Kernel Modules
    Ext2 Ported to Microsoft's Singularity
    Cloud vs. Cloud
    The A-Z of Programming Languages: D
    Microsoft's Windows 95 Architect Is a Happy Mac Convert
    Microsoft: 180 Million Vista Licenses Now Sold
    Linus Torvalds, Geek of the Week
    Detailed Report on Apple's Claims Against Psystar
    Debunking the Linux Virus Myth
    Judge: SCO Owes Novell $2.5M for Unix Infringements


    Ars Technica

    eMusic dances to new social rhythm, still has left foot
    Interview: IT consumerization in the enterprise
    Windows Search 4.0 begins to arrive on Windows Update
    E-Gold execs face prison after money laundering guilty plea
    Managing green tech complex, expensive, requires "eco-czar"
    Lose-lose: Icahn drops proxy fight, Yahoo puts him on board
    Microsoft: 180 million Vista licenses now sold
    Microsoft testing self-serve advertising for third parties
    Investment firm flushes $2.5 million with MovieBeam purchase
    Markey to NebuAd: "When did you stop beating the consumer?"
    Interview: IT consumerization and the future of higher ed
    You've got merger: MS, Yahoo both pursuing AOL deals
    Three major infrastructure updates released concurrently
    Report: cybercrime groups starting to operate like the Mafia
    Microsoft tells Congress Yahoogle will own 90% of ad market
    Apple finally sues unlicensed Macintosh cloner Psystar
    Microsoft "sets record straight" on latest Yahoo-Icahn drama
    Judge: Burden of policing eBay for counterfeits is Tiffany's
    Microsoft's role in iPhone 2.0: Exchange ActiveSync
    Yahoo says no to a joint Microsoft/Icahn bid


    Log in

    Genius Tech Blog

    The Genius Speaks on All Things Tech

    .htaccess / mod_rewrite Tutorials

    The .htaccess file and Apache’s mod_rewrite module may be some of the most under-utilized web server utilities.

    Millions of websites suffer the ignominy and shame of having hardcoded filenames
    on their websites such as:

    http://example.com/index.html

    or unsightly url’s for their (sometimes dynamic) subpages, for example:

    http://example.com/blog/post.php?post_number=1045

    .htaccess and mod_rewrite can dramatically change these unfortunate websites for the better. They may become

    http://example.com

    and

    http://example.com/blog/post/1045

    Not only will the new names be easier to read and more intuitive, they will also be search-engine friendly and one step closer to a proper RESTful methodology.

    For a good introduction to .htaccess, see:
    http://www.crucialwebhost.com/blog/htaccess-apache-rewrites-oh-my/

    There is a good mod_rewrite “cheatsheet” here:
    http://www.ilovejackdaniels.com/cheat-sheets/mod_rewrite-cheat-sheet/

    For more reading on RESTful principles, see:
    http://en.wikipedia.org/wiki/Representational_State_Transfer

    2 Responses to “.htaccess / mod_rewrite Tutorials”

    1. Matt Says:

      Don,

      Thanx for the helpful advice - regex friendly and search engine ready!

    2. Apache, mod_rewrite and SEO | Edmonds Commerce Blog Says:

      [...] http://blogs.ittoolbox.com/c/codesharp/archives/when-bugs-become-features-22068 http://geniustechblog.com/htaccess-mod_rewrite-tutorials-developer-tools/ http://jeremyhermanns.org/2006/09/30/learning-to-use-mod_rewrite/ Bookmark this [...]

    Leave a Reply

    Your Computer Genius. Everybody needs one.

    Copyright © 2008 Your Computer Genius.
    All Rights Reserved.

    Valid XHTML 1.0!   Valid CSS!