Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. Options +FollowSymLinks -MultiViews
  2. # Turn mod_rewrite on
  3. RewriteEngine On
  4. RewriteBase /
  5.  
  6. RewriteCond %{HTTPS} !=on
  7. RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  8.  
  9. RewriteCond %{HTTP_HOST} ^51.68.139.252
  10. RewriteRule (.*) https://vgocoat.com/$1 [R=301,L]
  11.  
  12. RewriteRule ^/?profile/(.*?)/?$ /profile?id=$1 [L]
  13. RewriteRule ^/?inventory/(.*?)/?$ /inventory?id=$1 [L]
  14. RewriteRule ^/?raffle/(.*?)/(.*?)/?$ /raffle?round=$1&hash=$2 [L]
  15. RewriteRule ^/?game/(.*?)/(.*?)/?$ /game?round=$1&hash=$2 [L]
  16.  
  17. RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
  18. RewriteRule ^ %1 [R,L]
  19.  
  20. RewriteCond %{REQUEST_FILENAME} !-d
  21. RewriteCond %{REQUEST_FILENAME}.php -f
  22. RewriteRule ^(.*?)/?$ $1.php [L]
  23.  
  24. ErrorDocument 400 /index
  25. ErrorDocument 401 /index
  26. ErrorDocument 403 /index
  27. ErrorDocument 404 /index
  28. ErrorDocument 500 /index
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement