We Recommend

Pro Apache Pro Apache
In addition to installation, maintenance, and deployment, the book demonstrates how to configure Apache to use Perl, PHP, and Python as server-side scripting languages. And unlike other books on Apache, Pro Apache provides comprehensive information on both major revisions - 1.3 and 2.0 - of the software.


Posted By

bpj1966 on 06/01/08


Tagged

textmate htaccess textpattern


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

heinz1959


TextPattern .htaccess


Published in: Apache 


  1. #TextPattern
  2. #DirectoryIndex index.php index.html
  3. #Options +FollowSymLinks
  4. #Options -Indexes
  5. <IfModule mod_rewrite.c>
  6. RewriteEngine On
  7. #RewriteBase /relative/web/path/
  8. RewriteCond %{REQUEST_FILENAME} -f [OR]
  9. RewriteCond %{REQUEST_FILENAME} -d
  10. RewriteRule ^(.+) - [PT,L]
  11. RewriteRule ^(.*) index.php
  12. RewriteCond %{HTTP:Authorization} !^$
  13. RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
  14. </IfModule>
  15. #php_value register_globals 0

Report this snippet 

You need to login to post a comment.