sNews .htaccess


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



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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.