Advertisement
Guest User

Untitled

a guest
Sep 18th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 0.58 KB | None | 0 0
  1. if ($http_host != 'skincodeshop.ru') {
  2.     return    301    http://www.skincodeshop.ru$request_uri;
  3. }
  4.  
  5. location / {
  6.     try_files    $uri $uri/ @rewrite;
  7. }
  8.  
  9. location ~* ^/core/ {
  10.     deny                all;
  11. }
  12.  
  13. location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|bmp|woff)$ {
  14.     try_files           $uri $uri/ @rewrite;
  15.     access_log          off;
  16.     expires             10d;
  17.     break;
  18. }
  19.  
  20. if ($request_uri ~* '^/index.php$') {
  21.     return 301 /;
  22. }
  23.  
  24. if ($request_uri ~* '^/index.html$') {
  25.     return 301 /;
  26. }
  27.  
  28. if ($request_uri ~* '^/index.htm$') {
  29.     return 301 /;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement