• Welcome!

  • Visitors

  • Categories

  • Recent Comments

  • Archives

  • Best Consumer Wireless Router

  • From the Apple Store

    Apple Refurbished MacBook Air 1.6GHz Intel Core 2 Duo

    Apple Refurbished MacBook 2.1GHz Intel Core 2 Duo - White

    Apple Refurbished iMac 20-inch 2.0GHz Intel Core 2 Duo

  • MWAVE is our FAV

  • Carbonite Online Backup

  • 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.addedbytes.com/cheat-sheets/mod_rewrite-cheat-sheet/

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

    3 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 [...]

    3. AskApache Says:

      Ues people don’t realize how useful .htaccess really is! You can see a whole bunch of example code at http://www.askapache.com/htaccess/apache-htaccess.html

    Leave a Reply


    Computer News


    Your Computer Genius. Everybody needs one.

    Copyright © 2008Ń2010 Your Computer Genius.
    All Rights Reserved.

    Valid XHTML 1.0!   Valid CSS!