krot

nginx rewrite

Feb 6th, 2020
124
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RewriteEngine On
  2. RewriteCond %{REQUEST_FILENAME} !-f
  3. RewriteCond %{REQUEST_FILENAME} !-d
  4. RewriteRule . index.php [QSA,L]
  5. =>
  6. location / {
  7. try_files $uri $uri/ /index.php$is_args$args;
  8. }
RAW Paste Data