Advertisement
RFlintstone

httaccess 24/03/2018

Mar 24th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.31 KB | None | 0 0
  1.  
  2. ErrorDocument 401 default
  3. ErrorDocument 403 default
  4. ErrorDocument 404 default
  5. ErrorDocument 405 default
  6. ErrorDocument 406 default
  7. ErrorDocument 500 default
  8. ErrorDocument 501 default
  9. ErrorDocument 503 default
  10.  
  11. RewriteEngine on
  12. RewriteCond %{request_filename} -f
  13. RewriteRule ^(.*) $1 [L]
  14. RewriteRule ^(([^/]*)+)?$ index.php?a=$1 [L]
  15.  
  16. RewriteRule ^welcome/?$ index.php?a=welcome [NC]
  17.  
  18. RewriteRule ^stream/?$ index.php?a=stream [NC]
  19. RewriteRule ^stream/logout/([^/]+)/?$ index.php?a=stream&logout=1&token_id=$1 [NC]
  20.  
  21. RewriteRule ^explore/?$ index.php?a=explore [NC]
  22. RewriteRule ^explore/filter/([^/]+)/?$ index.php?a=explore&filter=$1 [NC]
  23.  
  24. RewriteRule ^upload/?$ index.php?a=upload [NC]
  25.  
  26. RewriteRule ^pro/?$ index.php?a=pro [NC]
  27.  
  28. RewriteRule ^stats/?$ index.php?a=stats [NC]
  29. RewriteRule ^stats/filter/([^/]+)/?$ index.php?a=stats&filter=$1 [NC]
  30.  
  31. RewriteRule ^profile/([^/]+)/?$ index.php?a=profile&u=$1 [NC]
  32. RewriteRule ^profile/([^/]+)/([^/]+)/?$ index.php?a=profile&u=$1&r=$2 [NC]
  33. RewriteRule ^profile/([^/]+)/filter/([^/]+)/?$ index.php?a=profile&u=$1&filter=$2 [NC]
  34.  
  35. RewriteRule ^notifications/?$ index.php?a=notifications [NC]
  36. RewriteRule ^notifications/filter/([^/]+)/?$ index.php?a=notifications&filter=$1 [NC]
  37.  
  38. RewriteRule ^settings/?$ index.php?a=settings [NC]
  39. RewriteRule ^settings/([^/]+)/?$ index.php?a=settings&b=$1 [NC]
  40.  
  41. RewriteRule ^messages/?$ index.php?a=messages [NC]
  42. RewriteRule ^messages/([^/]+)/([^/]+)/?$ index.php?a=messages&u=$1&id=$2 [NC]
  43.  
  44. RewriteRule ^track/([^/]+)/?$ index.php?a=track&id=$1 [NC]
  45. RewriteRule ^track/([^/]+)/edit/?$ index.php?a=track&id=$1&type=edit [NC]
  46. RewriteRule ^track/([^/]+)/report/?$ index.php?a=track&id=$1&type=report [NC]
  47. RewriteRule ^track/([^/]+)/stats/?$ index.php?a=track&id=$1&type=stats [NC]
  48. RewriteRule ^track/([^/]+)/likes/?$ index.php?a=track&id=$1&type=likes [NC]
  49. RewriteRule ^track/([^/]+)/stats/filter/([^/]+)/?$ index.php?a=track&id=$1&type=stats&filter=$2 [NC]
  50. RewriteRule ^track/([^/]+)/([^/]+)/?$ index.php?a=track&id=$1&name=$2 [NC]
  51.  
  52. RewriteRule ^playlist/([^/]+)/?$ index.php?a=playlist&id=$1 [NC]
  53. RewriteRule ^playlist/([^/]+)/edit/?$ index.php?a=playlist&id=$1&edit=true [NC]
  54. RewriteRule ^playlist/([^/]+)/([^/]+)/?$ index.php?a=playlist&id=$1&name=$2 [NC]
  55.  
  56. RewriteRule ^search/filter/([^/]+)/([^/]+)/?$ index.php?a=search&filter=$1&q=$2 [NC]
  57.  
  58. RewriteRule ^page/([^/]+)/?$ index.php?a=page&b=$1 [NC]
  59.  
  60. RewriteRule ^recover/?$ index.php?a=recover [NC]
  61. RewriteRule ^recover/do/?$ index.php?a=recover&r=1 [NC]
  62.  
  63.  
  64.  
  65.  
  66.  
  67. <IfModule mod_rewrite.c>
  68. RewriteEngine On
  69. RewriteCond %{REQUEST_FILENAME} !-f
  70. RewriteRule ^([^\.]+)$ $1.php [NC,L]
  71. RewriteCond %{HTTPS} !=on
  72. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  73.  
  74. RewriteCond %{REQUEST_FILENAME} -f [OR]
  75. RewriteCond %{REQUEST_FILENAME} -l [OR]
  76. RewriteCond %{REQUEST_FILENAME} -d
  77. RewriteRule ^.*$ - [NC,L]
  78. RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
  79. RewriteRule ^.*$ index.php [NC,L]
  80. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement