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 sNews


Versions (?)


sNews .htaccess


Published in: Apache 


  1. #sNews
  2. <IfModule mod_php4.c>
  3. php_value session.use_trans_sid 0
  4. </IfModule>
  5. <IfModule mod_security.c>
  6. SecFilterEngine Off
  7. SecFilterScanPOST Off
  8. </IfModule>
  9. RewriteEngine On
  10. #RewriteBase /sNews16
  11. RewriteCond %{REQUEST_FILENAME} -f
  12. RewriteRule ^(.*) $1 [L]
  13. RewriteCond %{REQUEST_FILENAME} !-d
  14. RewriteRule ^(.*)$ index.php?category=$1 [L]
  15. RewriteCond %{REQUEST_FILENAME} !-d
  16. RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
  17. RewriteCond %{REQUEST_FILENAME} !-d
  18. RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
  19. RewriteCond %{REQUEST_FILENAME} !-d
  20. RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1&nbsp;articlespage=$2 [L]

Report this snippet 

You need to login to post a comment.