How do i convert this Mod_rewrite rule to nginx
Posted
by bacho
on Stack Overflow
See other posts from Stack Overflow
or by bacho
Published on 2010-03-14T18:00:45Z
Indexed on
2010/03/14
18:05 UTC
Read the original article
Hit count: 184
This is the Htacces rule:
RewriteEngine on
RewriteRule ^([A-Za-z0-9-]+)/?$ ir.php?id=$1
how should I pass it to a Nginx compliant rewrite rule... i read the doc and did this:
rewrite ^([A-Za-z0-9-]+)/?$ ir.php?id=$1 last;
But didnt work. and another question: Is there any equivalent of .htaccess to Nginx (per directory rules) Thanks
© Stack Overflow or respective owner