Guest User

Untitled

a guest
Aug 5th, 2020
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. Options +FollowSymLinks
  2. Options -MultiViews
  3. Options -Indexes
  4. RewriteEngine on
  5. IndexIgnore *
  6. RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
  7. RewriteRule ^(.*)$ - [E=BASE:%1]
  8.  
  9. RewriteCond %{REQUEST_FILENAME} !-d
  10.  
  11. # Disabled
  12. # RewriteRule ^(.+)/$ $1 [R=301,L]
  13.  
  14. RewriteRule ^avatar/([^/]+)/([^/]+)/(f|l|r|b|front|left|right|back)/?$ %{ENV:BASE}core/avatar/face.php?u=$1&s=$2&v=$3
  15. RewriteRule ^avatar/([^/]+)/(f|l|r|b|front|left|right|back)/?$ %{ENV:BASE}core/avatar/face.php?u=$1&v=$2
  16. RewriteRule ^avatar/([^/]+)/([^/]+)/?$ %{ENV:BASE}core/avatar/face.php?u=$1&s=$2
  17. RewriteRule ^avatar/([^/]+)/?$ %{ENV:BASE}core/avatar/face.php?u=$1 [L]
  18.  
  19. RewriteCond %{REQUEST_FILENAME} !-f
  20. RewriteCond %{REQUEST_FILENAME} !-d
  21.  
  22. RewriteRule ^(.*)$ %{ENV:BASE}index.php?route=/$1 [NC,L,QSA]
  23. #RewriteRule ^(.*)$ ./index.php?route=/$1 [NC,L,QSA]
  24.  
  25. # Prevent access to template files
  26. <files "*.tpl">
  27. Deny from all
  28. </files>
Add Comment
Please, Sign In to add comment