Administration
  Home arrow Administration arrow Page 7 - Getting More Out Of Apache (Part 2)
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Forums Sitemap 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ADMINISTRATION

Getting More Out Of Apache (Part 2)
By: icarus, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 1
    2001-01-23


    Table of Contents:
  • Getting More Out Of Apache (Part 2)
  • Eyes Only
  • Identity Check
  • Grouping Things Together
  • Timmmmmmbbbbberrrr!
  • When Things Go Wrong
  • Just Rewrite It!
  • Putting It Into Practice

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Getting More Out Of Apache (Part 2) - Just Rewrite It!
    (Page 7 of 8 )

    One of Apache's more powerful features - and also one of its least-knownones - is its URL rewriting module, which makes it possible to manipulateURLs using a rule-based rewriting engine in combination with regularexpressions.

    Apache's URL rewriting engine was originally developed by Ralf Engelschallin 1996. He handed it over to the Apache developers, who integrated it intothe Web server, and it's been part and parcel of it since then.Note, however, that the engine needs to be compiled into the server to useit - so if you plan on trying out any of the examples below, you may needto re-compile your server with the mod_rewrite module first.

    The basis of the mod_rewrite module is rulesets and conditions, which maybe specified in either the main "httpd.conf" configuration file or theper-directory ".htaccess" file. When the server receives a HTTP request,the rewriting engine begins checking for a matching ruleset; if it finds amatch, it substitutes the rewritten URL for the original one.

    It's also possible to add conditions to specific rules - in this case, oncea ruleset is matched, the conditions attached to it are checked, and URLsubstitution occurs if they are found to be valid.

    Rewriting rules are specified with the RewriteRule directive, whileconditions are specified with the RewriteCond directive. RewriteConddirectives need to precede RewriteRule directive.

     
     
    >>> More Administration Articles          >>> More By icarus, (c) Melonfire
     

       

    ADMINISTRATION ARTICLES

    - Capturing Packets with the Wireshark Network...
    - How to Use Wireshark Network Analyzer
    - Understanding TCP/IP Protocol Types
    - Network Booting via PXE: the Basics
    - Scalix: Linux Administrator`s Guide
    - Network Administration with FreeBSD 7
    - Components of an Information Architecture
    - The Anatomy of an Information Architecture
    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba





    © 2003-2010 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek