Advertisement
dmontal2

apache2nginx_modrewrite

Jan 29th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. APACHE
  2. ==========
  3. RewriteEngine On
  4. RewriteRule ^/?([-A-Za-z0-9_]+)$ yoo.php?dude=$1 [L]
  5. Options All -Indexes
  6.  
  7. NGINX
  8. =========
  9. autoindex off; location / { rewrite ^/?([-A-Za-z0-9_]+)$ /yoo.php?dude=$1 break; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement