TextPattern .htaccess


/ Published in: Apache
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.