Guest User

Untitled

a guest
Oct 12th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. ### Symphony 2.2.x ###
  2. Options +FollowSymlinks -Indexes
  3.  
  4. <IfModule mod_rewrite.c>
  5.  
  6. RewriteEngine on
  7. RewriteBase /
  8.  
  9. ### SECURITY - Protect crucial files
  10. RewriteRule ^manifest/(.*)$ - [F]
  11. RewriteRule ^workspace/utilities/(.*).xsl$ - [F]
  12. RewriteRule ^workspace/pages/(.*).xsl$ - [F]
  13. RewriteRule ^(.*).sql$ - [F]
  14. RewriteRule (^|/)\. - [F]
  15.  
  16. ### DO NOT APPLY RULES WHEN REQUESTING "favicon.ico"
  17. RewriteCond %{REQUEST_FILENAME} favicon.ico [NC]
  18. RewriteRule .* - [S=14]
  19.  
  20. ### IMAGE RULES
  21. RewriteRule ^image\/(.+\.(jpg|gif|jpeg|png|bmp))$ extensions/jit_image_manipulation/lib/image.php?param=$1 [L,NC]
  22.  
  23. ### CHECK FOR TRAILING SLASH - Will ignore files
  24. RewriteCond %{REQUEST_FILENAME} !-f
  25. RewriteCond %{REQUEST_URI} !/$
  26. RewriteCond %{REQUEST_URI} !(.*)/$
  27. RewriteRule ^(.*)$ $1/ [L,R=301]
  28.  
  29. ### URL Correction
  30. RewriteRule ^(symphony/)?index.php(/.*/?) $1$2 [NC]
  31.  
  32. ### ADMIN REWRITE
  33. RewriteRule ^symphony\/?$ index.php?mode=administration&%{QUERY_STRING} [NC,L]
  34.  
  35. RewriteCond %{REQUEST_FILENAME} !-d
  36. RewriteCond %{REQUEST_FILENAME} !-f
  37. RewriteRule ^symphony(\/(.*\/?))?$ index.php?symphony-page=$1&mode=administration&%{QUERY_STRING} [NC,L]
  38.  
  39. ### FRONTEND REWRITE - Will ignore files and folders
  40. RewriteCond %{REQUEST_FILENAME} !-d
  41. RewriteCond %{REQUEST_FILENAME} !-f
  42. RewriteRule ^(.*\/?)$ index.php?symphony-page=$1&%{QUERY_STRING} [L]
  43.  
  44. </IfModule>
  45. ######
Add Comment
Please, Sign In to add comment